[extensions-web/feature/static-manifests] settings: allow to bypass static settings override in debug mode



commit 0f37f69c22b7a84b57e71425a16f7e0637a199bf
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Mon Jan 30 19:29:25 2017 +0400

    settings: allow to bypass static settings override in debug mode

 sweettooth/settings.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 51fc823..d16b422 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -32,7 +32,6 @@ DEBUG = False
 
 ALLOWED_HOSTS = ["extensions.gnome.org"]
 
-
 # Application definition
 
 INSTALLED_APPS = (
@@ -197,6 +196,7 @@ DEFAULT_FROM_EMAIL = "noreply gnome org"
 THUMBNAIL_DEBUG = True
 
 NO_SECURE_SETTINGS = False
+NO_STATICFILES_SETTINGS = False
 
 try:
     from local_settings import *
@@ -213,5 +213,6 @@ if not DEBUG and not NO_SECURE_SETTINGS:
     SECURE_PROXY_SSL_HEADER = ('HTTPS', 'https')
     SECURE_SSL_REDIRECT = True
 
-if DEBUG:
-    STATICFILES_STORAGE = None
+if DEBUG and not NO_STATICFILES_SETTINGS:
+    STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
+    STATIC_ROOT = None


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]