summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Velásquez <angvp@archlinux.org>2017-06-08 14:42:53 -0400
committerGitHub <noreply@github.com>2017-06-08 14:42:53 -0400
commit6b901ca5c2385f1375865b3a0b7d7f652e7e3543 (patch)
treefd40298c52eb9c1e1f6ce60f15adca3e32ad739b
parent85a9f34cc84f58cbb22f4c0741670e8e3d3ad6d5 (diff)
parent61cc984a43da993c57aab88c1301ae8a6664e5cd (diff)
downloadarchweb-6b901ca5c2385f1375865b3a0b7d7f652e7e3543.tar.gz
archweb-6b901ca5c2385f1375865b3a0b7d7f652e7e3543.zip
Merge pull request #31 from jelly/settings_cleanups
settings.py: handle flake8 warnings
-rw-r--r--settings.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/settings.py b/settings.py
index e59fb753..f2856acb 100644
--- a/settings.py
+++ b/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 @@ LOGGING = {
},
}
-## 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,42 +159,42 @@ SECRET_KEY = '00000000000000000000000000000000000000000000000'
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:
pass
TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [
- path.join(DEPLOY_PATH, 'templates')
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [
+ path.join(DEPLOY_PATH, 'templates')
+ ],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'debug': DEBUG,
+ 'context_processors': [
+ 'django.contrib.auth.context_processors.auth',
+ 'django.core.context_processors.debug',
+ 'django.contrib.messages.context_processors.messages',
+ 'main.context_processors.secure',
],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'debug': DEBUG,
- 'context_processors': [
- 'django.contrib.auth.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.contrib.messages.context_processors.messages',
- 'main.context_processors.secure',
- ],
- }
}
+ }
]
# 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: