From eea7d4ffa697c73d9a9e698d34023e3ec76da2f9 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 28 Jul 2020 23:03:31 +0200 Subject: [PATCH] Created stub templates for auth foo. --- source/lostplaces/lostplaces/settings.py | 6 +++++- source/lostplaces/templates/base.html | 0 source/lostplaces/templates/home.html | 0 source/lostplaces/templates/registration/login.html | 0 source/lostplaces/templates/signup.html | 0 5 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 source/lostplaces/templates/base.html create mode 100644 source/lostplaces/templates/home.html create mode 100644 source/lostplaces/templates/registration/login.html create mode 100644 source/lostplaces/templates/signup.html diff --git a/source/lostplaces/lostplaces/settings.py b/source/lostplaces/lostplaces/settings.py index 3479c2e..1d82e7b 100644 --- a/source/lostplaces/lostplaces/settings.py +++ b/source/lostplaces/lostplaces/settings.py @@ -56,7 +56,7 @@ ROOT_URLCONF = 'lostplaces.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -129,3 +129,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads') # Use custom user model AUTH_USER_MODEL = 'lostplaces_app.Explorer' + +# Templates to use for authentication +LOGIN_REDIRECT_URL = 'home' +LOGOUT_REDIRECT_URL = 'home' diff --git a/source/lostplaces/templates/base.html b/source/lostplaces/templates/base.html new file mode 100644 index 0000000..e69de29 diff --git a/source/lostplaces/templates/home.html b/source/lostplaces/templates/home.html new file mode 100644 index 0000000..e69de29 diff --git a/source/lostplaces/templates/registration/login.html b/source/lostplaces/templates/registration/login.html new file mode 100644 index 0000000..e69de29 diff --git a/source/lostplaces/templates/signup.html b/source/lostplaces/templates/signup.html new file mode 100644 index 0000000..e69de29