SOITA/config/views.py
2021-12-23 14:03:12 +01:00

19 lines
462 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 = {}
context['tests'] = Test.objects.all
# context = {
# 'latest_question_list': latest_question_list,
# }
return render(request, 'home.html', context)
def welcome(request):
return render(request, 'welcome.html')