18 lines
466 B
Python
18 lines
466 B
Python
from django.shortcuts import render, redirect
|
|
from django.template import loader
|
|
from django.contrib.auth.decorators import login_required
|
|
from trials.models import Test
|
|
|
|
|
|
@login_required
|
|
def home(request):
|
|
context = {}
|
|
# TODO replace
|
|
#context['tests'] = Test.objects.filter(owner=request.user)
|
|
context['tests'] = Test.objects.all
|
|
return render(request, 'myTests.html', context)
|
|
|
|
|
|
def welcome(request):
|
|
return render(request, 'welcome.html')
|