mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
make sure to add the current dir to sys.path as well. close #322
This commit is contained in:
parent
594a189cc1
commit
f724c53e17
@ -80,6 +80,8 @@ class DjangoApplication(Application):
|
||||
# not settings env set, try to build one.
|
||||
project_path, settings_name = find_settings_module(
|
||||
os.path.abspath(args[0]))
|
||||
if project_path not in sys.path:
|
||||
sys.path.insert(0, project_path)
|
||||
|
||||
if not project_path:
|
||||
raise RuntimeError("django project not found")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user