Example site

This commit is contained in:
Martin Pépin 2020-05-11 00:34:11 +02:00
parent 591a61200b
commit 0b5a5578b6
18 changed files with 264 additions and 0 deletions

View file

@ -0,0 +1,12 @@
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
def home(request):
ctx = {"user": request.user}
return render(request, "example/home.html", ctx)
@login_required
def protected_page(request):
return render(request, "example/protected.html")