[Flask] help getting hello world package-based webapp running without installing it

David Lord davidism at gmail.com
Thu Jul 20 12:27:19 EDT 2017

The correct way to develop your application is by installing it as a
package, that's not just something for production, and it's why the
tutorial tells you to do it. The next release of Flask will allow
`FLASK_APP=package.inner` for some non-installed cases, but it's better to
just install the package. It works with `python -m flask` because that
implicitly adds the current directory to the Python path, which is not
something to rely on. For example, it would break if you ran from a
different directory.

Installing the package is not a big task, you create a `setup.py` file with
a couple lines then do `pip install -e .`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170720/3d5afb61/attachment.html>

More information about the Flask mailing list