Skip to content
Myr

Merge pull request #3067 from pallets/tutorial-flask-run

Before adoption: this commit came in with the history the project adopted, so no landing records it.

clarify where to call flask run from in tutorial

authored by David Lord · committed by GitHub · parents 8dd8e9b, d615134 · Browse files · 2 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:docs/tutorial/factory.rst+2 added-1 removed
125 unmodified lines
126-------------------127128Now you can run your application using the ``flask`` command. From the129terminal, tell Flask where to find your application, then run it in130development mode.130development mode. Remember, you should still be in the top-level131``flask-tutorial`` directory, not the ``flaskr`` package.132133Development mode shows an interactive debugger whenever a page raises an134exception, and restarts the server whenever you make changes to the135code. You can leave it running and just reload the browser page as you
43 unmodified lines
modified:docs/tutorial/install.rst+2 added-1 removed
106 unmodified lines
107 wheel 0.30.0108109Nothing changes from how you've been running your project so far.110``FLASK_APP`` is still set to ``flaskr`` and ``flask run`` still runs111the application.111the application, but you can call it from anywhere, not just the112``flask-tutorial`` directory.113114Continue to :doc:`tests`.