# HG changeset patch # User Branko Majic <branko@majic.rs> # Date 2013-08-25 20:27:15 # Node ID 8a8210108dc80b387b6fab2143da400c25ae2a3f # Parent 89af51928504c57d244670624e437eba0c76e6f6 DMT-1: Move the project root directory up one level. Include project templates path. diff --git a/project/project_name/settings/base.py b/project/project_name/settings/base.py --- a/project/project_name/settings/base.py +++ b/project/project_name/settings/base.py @@ -8,7 +8,7 @@ from os import path # Determine the Django project root directory. -PROJECT_ROOT = path.dirname(path.dirname(path.dirname(path.abspath(__file__)))) +PROJECT_ROOT = path.dirname(path.dirname(path.abspath(__file__))) ASSETS_ROOT = path.normpath(path.join(PROJECT_ROOT, "assets")) # Language code for this installation. All choices can be found here: @@ -82,9 +82,7 @@ ROOT_URLCONF = '{{ project_name }}.urls' WSGI_APPLICATION = '{{ project_name }}.wsgi.application' TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. + path.normpath(path.join(PROJECT_ROOT, "templates")) ) INSTALLED_APPS = (