mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-08 21:04:17 +00:00
py-i2phosts-checker: properly check DJANGO_PROJECT_PATH variable in config
This commit is contained in:
parent
fd380a2d4a
commit
6c325725b0
@ -30,7 +30,7 @@ if 'include' in config:
|
|||||||
|
|
||||||
# django setup
|
# django setup
|
||||||
DJANGO_SETTINGS_MODULE = 'settings'
|
DJANGO_SETTINGS_MODULE = 'settings'
|
||||||
if config['DJANGO_PROJECT_PATH']:
|
if 'DJANGO_PROJECT_PATH' in config:
|
||||||
DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH']
|
DJANGO_PROJECT_PATH = config['DJANGO_PROJECT_PATH']
|
||||||
else:
|
else:
|
||||||
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web'
|
DJANGO_PROJECT_PATH = os.path.dirname(sys.argv[0]) + '/web'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user