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:
Paul J. Davis 2011-06-15 19:31:07 -04:00
parent 0923a52171
commit 9d65513f33

View File

@ -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)