Added auto-defining capabilites to some directory structure spesific variables/settings.
This commit is contained in:
parent
bfa032739a
commit
bf2b0b8530
|
@ -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("/home/cad/Workspace/djagen_ws/gezegen/DJAGEN/branches/mustafa_branch/")
|
||||
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 *
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# Django settings for djagen project.
|
||||
import os
|
||||
BASEPATH = '/home/cad/Workspace/djagen_ws/gezegen/DJAGEN/branches/mustafa_branch/djagen'
|
||||
|
||||
#This BASEPATH gets defined automatically.
|
||||
BASEPATH = os.path.abspath(os.path.dirname(__file__))
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user