mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Templates settings as recommended from Django 1.8
This commit is contained in:
parent
57ce00c4af
commit
44c8746d8c
2 changed files with 14 additions and 0 deletions
|
|
@ -29,6 +29,13 @@ INSTALLED_APPS = [
|
|||
'defender',
|
||||
]
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'APP_DIRS': True,
|
||||
},
|
||||
]
|
||||
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'too-secret-for-test')
|
||||
|
||||
LOGIN_REDIRECT_URL = '/admin'
|
||||
|
|
|
|||
|
|
@ -29,6 +29,13 @@ INSTALLED_APPS = [
|
|||
'defender',
|
||||
]
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'APP_DIRS': True,
|
||||
},
|
||||
]
|
||||
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'too-secret-for-test')
|
||||
|
||||
LOGIN_REDIRECT_URL = '/admin'
|
||||
|
|
|
|||
Loading…
Reference in a new issue