aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-25 23:14:46 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-25 23:14:46 +0300
commit84c73ab2ad05bbe2b095a5b4a7737aa50c276ee0 (patch)
treef9106ff7712df687ef7bacc72d0014c1b34d6b25 /settings.py
parent09731610e0c037a3c6a6068d71f4dca887389f26 (diff)
downloadServo-84c73ab2ad05bbe2b095a5b4a7737aa50c276ee0.tar.gz
Servo-84c73ab2ad05bbe2b095a5b4a7737aa50c276ee0.tar.bz2
Servo-84c73ab2ad05bbe2b095a5b4a7737aa50c276ee0.zip
Cleanup
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/settings.py b/settings.py
index 71a3cea..ae1aa80 100644
--- a/settings.py
+++ b/settings.py
@@ -80,12 +80,6 @@ MEDIA_URL = '/files/'
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
-#STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
-
-# URL prefix for static files.
-# Example: "http://media.lawrence.com/static/"
-STATIC_URL = '/static/'
-
STATIC_ROOT = os.path.dirname(os.path.join(BASE_DIR, 'static'))
# Additional locations of static files
@@ -93,6 +87,10 @@ STATICFILES_DIRS = (
'static',
)
+# URL prefix for static files.
+# Example: "http://media.lawrence.com/static/"
+STATIC_URL = '/static/'
+
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
# List of finder classes that know how to find static files in
@@ -108,7 +106,6 @@ STATICFILES_FINDERS = (
TEMPLATE_LOADERS = (
'django.template.loaders.app_directories.Loader',
'django.template.loaders.filesystem.Loader',
- #'django.template.loaders.eggs.Loader',
)
MIDDLEWARE_CLASSES = (
@@ -120,12 +117,12 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
'servo.lib.middleware.LoginRequiredMiddleware',
'servo.lib.middleware.TimezoneMiddleware',
- # Uncomment the next line for simple clickjacking protection:
'django.middleware.common.BrokenLinkEmailsMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'servo.urls.default'
+SESSION_SERIALIZER = 'servo.lib.utils.SessionSerializer'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'wsgi.application'
@@ -239,9 +236,8 @@ REST_FRAMEWORK = {
)
}
-ENABLE_RULES = True
+ENABLE_RULES = False
TIMEZONE = 'Europe/Helsinki'
-SESSION_SERIALIZER = 'servo.lib.utils.SessionSerializer'
from local_settings import *