diff --git a/project-django-1.8/project_name/settings/base.py b/project-django-1.8/project_name/settings/base.py index 4808eff65c962dc8bd8887413843c832e8f36a5d..75dfb118cf0bea032c0ed70a1a0fb6a955b836fa 100644 --- a/project-django-1.8/project_name/settings/base.py +++ b/project-django-1.8/project_name/settings/base.py @@ -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")), )