initial commit

This commit is contained in:
2021-01-07 22:12:05 +01:00
commit e385650802
51 changed files with 1048 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from django.contrib.auth import authenticate
from django.shortcuts import render, redirect
def home(request):
# if not logged in => redirect to login screen
if not request.user.is_authenticated:
return redirect('/accounts/login/')
# if logged in => redirect to monitor view
return redirect('/monitor')