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
 
@@ -21,12 +21,16 @@
 
# Base paths for accessing project root directory and directory where assets are
 
# stored. Other paths can be built relative to these directories with:
 
# os.path.join(BASE_DIR, ...)
 
# 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"))
 

	
 
# List of installed applications.
 
INSTALLED_APPS = (
 
@@ -93,8 +97,8 @@ MEDIA_ROOT = os.path.normpath(os.path.join(ASSETS_ROOT, "media"))
 
# Directory for storing and serving static files.
 
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)