mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Disable attempt at reloading Django modules.
This appears to be causing errors in user code so we decided to disable it until we can find a cause or better method for reloading Django.
This commit is contained in:
parent
0923a52171
commit
9d65513f33
@ -129,10 +129,10 @@ class DjangoApplicationCommand(DjangoApplication):
|
||||
self.project_path = os.getcwd()
|
||||
|
||||
# remove all modules related to djano
|
||||
for modname, mod in sys.modules.items():
|
||||
if 'settings' in modname.split('.') or \
|
||||
modname.startswith(self.project_name):
|
||||
del sys.modules[modname]
|
||||
#for modname, mod in sys.modules.items():
|
||||
# if 'settings' in modname.split('.') or \
|
||||
# modname.startswith(self.project_name):
|
||||
# del sys.modules[modname]
|
||||
|
||||
# add the project path to sys.path
|
||||
sys.path.insert(0, self.project_path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user