[extensions-web] settings: don't set static root from environment if it's already set



commit 9326f69383d930cdfd98882be31dadd4a2e81576
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Fri Dec 7 19:35:05 2018 +0400

    settings: don't set static root from environment if it's already set

 sweettooth/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 9870908..83d7c4c 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -213,5 +213,5 @@ if not DEBUG and not NO_SECURE_SETTINGS:
 if DEBUG and not NO_STATICFILES_SETTINGS:
     STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
     STATIC_ROOT = None
-else:
+elif not STATIC_ROOT:
     STATIC_ROOT = os.getenv('EGO_STATIC_ROOT')


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