[extensions-web/deploy] settings: properly check for STATIC_ROOT



commit 31ccff872a691ce5d2eb72463fc323b41c4f87da
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Fri Dec 7 19:41:11 2018 +0400

    settings: properly check for STATIC_ROOT

 sweettooth/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 83d7c4c..72d7c04 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
-elif not STATIC_ROOT:
+elif not 'STATIC_ROOT' in locals():
     STATIC_ROOT = os.getenv('EGO_STATIC_ROOT')


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