Merged from mustafa_branch: Added auto-defining capabilites to some directory structure spesific variables/settings.

This commit is contained in:
Mustafa Arıcı 2010-08-24 22:14:07 +00:00
parent bf2b0b8530
commit a3af3888ad
2 changed files with 5 additions and 2 deletions

View File

@ -44,7 +44,9 @@ TEMPLATE_FILES = "examples/basic/planet.html.tmpl"
import sys
import os
# In order to reduce integration issues, this path gets defined automatically.
sys.path.append("ABSOLUTEPATH")
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),'../..')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'djagen.settings'
from djagen.collector.models import *

View File

@ -1,7 +1,8 @@
# Django settings for djagen project.
import os
BASEPATH = '/home/cad/Workspace/djagen_ws/gezegen/branches/mustafa_branch/djagen'
#This BASEPATH gets defined automatically.
BASEPATH = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG