Repair debug entry point after using absolute imports

Using absolute imports broke the debug target due to
a Werkzeug bug:
https://github.com/pallets/werkzeug/issues/461
Solution is to avoid running Flask apps using
"python -m", and to use "flask run". This also
gets rid of the coverage exception for
"__main__.py".
This commit is contained in:
f4lco
2019-01-27 20:47:27 +01:00
parent b86284054f
commit 5ccbf57851
3 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
RUN = pipenv run python -m stw_potsdam
RUN=FLASK_APP="stw_potsdam.views" pipenv run flask run
dependencies:
pipenv sync --dev