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