Parcourir la source

Allow to set STATIC_URL

Mehdi Abaakouk il y a 7 ans
Parent
commit
5fe33f28e0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      wifiwithme/settings/prod.py

+ 2 - 1
wifiwithme/settings/prod.py

@@ -10,7 +10,8 @@ try:
 except ImportError:
     pass
 
-STATIC_URL = '/{}assets/'.format(URL_PREFIX)
+if "STATIC_URL" not in locals():
+    STATIC_URL = '/{}assets/'.format(URL_PREFIX)
 
 
 LOGGING = {