add part of site to docker and login works using sessions

This commit is contained in:
2024-08-24 18:28:32 +02:00
parent 1291a6add8
commit 57ef3a5d2d
49 changed files with 2544 additions and 108 deletions

View File

@ -1,9 +1,6 @@
from django.http import HttpResponse
from django.shortcuts import render
from .models import User
def index(request):
if(request.session.get("visited", False)):
print("already visited")
request.session["visited"] = True
return HttpResponse("AAAAAAAAAAAAAAAAAAAAAAA")
return render(request, "index.html", {})