make sure to add the current dir to sys.path as well. close #322

This commit is contained in:
benoitc 2012-11-19 08:31:54 +01:00
parent 594a189cc1
commit f724c53e17

View File

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