|
|
@ -21,6 +21,9 @@ if 'include' in config: |
|
|
|
|
|
|
|
|
|
|
|
# django setup |
|
|
|
# django setup |
|
|
|
DJANGO_SETTINGS_MODULE = 'settings' |
|
|
|
DJANGO_SETTINGS_MODULE = 'settings' |
|
|
|
|
|
|
|
if 'DJANGO_PROJECT_PATH' in config: |
|
|
|
|
|
|
|
DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH'] |
|
|
|
|
|
|
|
else: |
|
|
|
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' |
|
|
|
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web' |
|
|
|
sys.path.insert(1, DJANGO_PROJECT_PATH) |
|
|
|
sys.path.insert(1, DJANGO_PROJECT_PATH) |
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE |
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE |
|
|
|