settings.py: handle flake8 warnings
Remove double #'s everywhere, remove spaces between [], place : directly after the string and correctly indent the TEMPLATES declaration
This commit is contained in:
parent
85a9f34cc8
commit
61cc984a43
16
settings.py
16
settings.py
@ -1,11 +1,11 @@
|
||||
# Django settings for archweb project.
|
||||
from os import path
|
||||
|
||||
## Set the debug values
|
||||
# Set the debug values
|
||||
DEBUG = False
|
||||
DEBUG_TOOLBAR = False
|
||||
|
||||
## Notification admins
|
||||
# Notification admins
|
||||
ADMINS = ()
|
||||
|
||||
# Set managers to admins
|
||||
@ -131,7 +131,7 @@
|
||||
},
|
||||
}
|
||||
|
||||
## Server used for linking to PGP keysearch results
|
||||
# Server used for linking to PGP keysearch results
|
||||
PGP_SERVER = 'pgp.mit.edu'
|
||||
PGP_SERVER_SECURE = True
|
||||
|
||||
@ -159,12 +159,12 @@
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE' : 'django.db.backends.sqlite3',
|
||||
'NAME' : 'database.db',
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'database.db',
|
||||
},
|
||||
}
|
||||
|
||||
## Import local settings
|
||||
# Import local settings
|
||||
try:
|
||||
from local_settings import *
|
||||
except ImportError:
|
||||
@ -192,9 +192,9 @@
|
||||
# Enable the debug toolbar if requested
|
||||
if DEBUG_TOOLBAR:
|
||||
MIDDLEWARE_CLASSES = \
|
||||
[ 'debug_toolbar.middleware.DebugToolbarMiddleware' ] + \
|
||||
['debug_toolbar.middleware.DebugToolbarMiddleware'] + \
|
||||
list(MIDDLEWARE_CLASSES)
|
||||
|
||||
INSTALLED_APPS = list(INSTALLED_APPS) + [ 'debug_toolbar' ]
|
||||
INSTALLED_APPS = list(INSTALLED_APPS) + ['debug_toolbar']
|
||||
|
||||
# vim: set ts=4 sw=4 et:
|
||||
|
Loading…
Reference in New Issue
Block a user