Changeset - b0cdd1d167a4
[Not reviewed]
0 1 0
Branko Majic (branko) - 9 years ago 2016-10-28 23:10:26
branko@majic.rs
MDT-3: Fixed missing import for ImproperlyConfigure exception. Fixed path to project-specific static files.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
project-django-1.8/project_name/settings/base.py
Show inline comments
 
@@ -24,6 +24,10 @@
 
# os.path.join(ASSETS_DIR, ...)
 
import os
 

	
 
# Import the exception for signalling invalid configuration. No other
 
# Django-specific definitions should be imported here.
 
from django.core.exceptions import ImproperlyConfigured
 

	
 
# Base and assets project directories.
 
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 
ASSETS_ROOT = os.path.normpath(os.path.join(os.path.dirname(BASE_DIR), "assets"))
 
@@ -96,5 +100,5 @@ STATIC_ROOT = os.path.normpath(os.path.join(ASSETS_ROOT, "static"))
 
# Additional directories from which to read the static files. This can be
 
# used for overriding application static files on project basis.
 
STATICFILES_DIRS = (
 
    os.path.normpath(os.path.join(BASE_DIR, "static")),
 
    os.path.normpath(os.path.join(BASE_DIR, '{{ project_name }}' , "static")),
 
)
0 comments (0 inline, 0 general)