Skip to content

Commit

Permalink
Repair debug entry point after using absolute imports
Browse files Browse the repository at this point in the history
Using absolute imports broke the debug target due to
a Werkzeug bug:
pallets/werkzeug#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".
  • Loading branch information
f4lco committed Jan 27, 2019
1 parent aa68d6f commit 204ffaf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions stw_potsdam/__main__.py

This file was deleted.

0 comments on commit 204ffaf

Please sign in to comment.