Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
5153fe3d
Commit
5153fe3d
authored
Feb 16, 2016
by
Nicholas Anderson
Browse files
Updated settings template to fix bugs and hopefully the last of
#24
parent
5836706d
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/settings/settings.py.template
View file @
5153fe3d
...
...
@@ -40,7 +40,7 @@ USE_TZ = True
MEDIA_URL = '/media/'
MEDIA_ROOT = ''
MEDIAFILES_DIRS = (
(
os.path.join(BASE_DIR, 'media/'),
os.path.join(BASE_DIR, 'media/'),
)
STATIC_URL = '/static/'
...
...
@@ -56,14 +56,24 @@ STATICFILES_FINDERS = (
SECRET_KEY = secret.SECRET_KEY
TEMPLATE_LOADERS = (
'django.template.loaders.app_directories.Loader',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
'django.contrib.auth.context_processors.auth',
)
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'templates')
],
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request'
],
'loaders': [
'django.template.loaders.app_directories.Loader'
],
'debug': DEBUG
}
}
]
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
...
...
@@ -91,6 +101,7 @@ INSTALLED_APPS = (
'django.contrib.admin',
'qrcode',
'captcha',
'crispy_forms',
'cas',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment