diff --git a/tasks.py b/tasks.py
index e4ab65a9167e0813e7287c98ba19959386973525..1dfb6fd17cd1952664e9df51bdaae514a4ae312c 100644
--- a/tasks.py
+++ b/tasks.py
@@ -32,7 +32,7 @@ def clean():
 
 
 def _run_manage_command(command):
-    run('python {0} {1}'.format(os.path.join(COOKIE, 'manage.py'), command), echo=True)
+    run('FLASK_APP="{0}.autoapp" flask {1}'.format(COOKIECUTTER_SETTINGS['app_name'], command), echo=True)
 
 
 @task(pre=[clean, build])