From d33fd7a2cfc6339e7ce41c67a684b2b68f12d964 Mon Sep 17 00:00:00 2001 From: Jeremy Epstein Date: Wed, 24 Aug 2016 21:47:44 +1000 Subject: [PATCH] update tasks.py to work with Click --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index e4ab65a..1dfb6fd 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])