diff options
Diffstat (limited to 'web_infrastructure')
-rw-r--r-- | web_infrastructure/django_manage | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web_infrastructure/django_manage b/web_infrastructure/django_manage index 68eb92c1..b02a9398 100644 --- a/web_infrastructure/django_manage +++ b/web_infrastructure/django_manage @@ -232,7 +232,6 @@ def main(): _ensure_virtualenv(module) - os.chdir(app_path) cmd = "python manage.py %s" % (command, ) if command in noinput_commands: @@ -251,7 +250,7 @@ def main(): if module.params[param]: cmd = '%s %s' % (cmd, module.params[param]) - rc, out, err = module.run_command(cmd) + rc, out, err = module.run_command(cmd, cwd=app_path) if rc != 0: if command == 'createcachetable' and 'table' in err and 'already exists' in err: out = 'Already exists.' |