Changeset - 8a8210108dc8
[Not reviewed]
default
0 1 0
Branko Majic (branko) - 12 years ago 2013-08-25 20:27:15
branko@majic.rs
DMT-1: Move the project root directory up one level. Include project templates path.
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general) First comment
project/project_name/settings/base.py
Show inline comments
 
@@ -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 = (
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now