Created stub templates for auth foo.

This commit is contained in:
Marcus Scholz 2020-07-28 23:03:31 +02:00
parent 36769322b4
commit eea7d4ffa6
5 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,7 @@ ROOT_URLCONF = 'lostplaces.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
@ -129,3 +129,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
# Use custom user model # Use custom user model
AUTH_USER_MODEL = 'lostplaces_app.Explorer' AUTH_USER_MODEL = 'lostplaces_app.Explorer'
# Templates to use for authentication
LOGIN_REDIRECT_URL = 'home'
LOGOUT_REDIRECT_URL = 'home'

View File

View File

View File