mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix issue #195. Thanks!
This commit is contained in:
parent
f1d5f26dfa
commit
0b094ca08a
@ -42,7 +42,8 @@ class DjangoApplication(Application):
|
||||
|
||||
# add the project path to sys.path
|
||||
sys.path.insert(0, self.project_path)
|
||||
sys.path.append(os.path.join(self.project_path, os.pardir))
|
||||
sys.path.append(os.path.normpath(os.path.join(self.project_path,
|
||||
os.pardir)))
|
||||
|
||||
def setup_environ(self):
|
||||
from django.core.management import setup_environ
|
||||
@ -157,12 +158,10 @@ class DjangoApplicationCommand(DjangoApplication):
|
||||
|
||||
# add the project path to sys.path
|
||||
sys.path.insert(0, self.project_path)
|
||||
sys.path.append(os.path.join(self.project_path, os.pardir))
|
||||
|
||||
|
||||
sys.path.append(os.path.normpath(os.path.join(self.project_path,
|
||||
os.pardir)))
|
||||
super(DjangoApplicationCommand, self).setup_environ()
|
||||
|
||||
|
||||
def load(self):
|
||||
# setup environ
|
||||
self.setup_environ()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user