README.rst
This file
Path
examples/tutorial/README.rst
68 lines · 1.2 KiB
Last changed by
Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9
History of this fileTake it
The walk stopped after 200 commits: lines older than 8bfce88 point at it.
Minor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
lines 1–13why, one step back1Flaskr2======34The basic blog app built in the Flask `tutorial`_.56.. _tutorial: https://flask.palletsprojects.com/tutorial/789Install10-------1112**Be sure to use the same version of the code as the version of the docs13you're reading.** You probably want the latest tagged version, but theMerge remote-tracking branch 'origin/2.0.x'David Lordbefore adoption19f458f
line 14why, one step back14default Git version is the main branch. ::Minor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
lines 15–25why, one step back1516 # clone the repository17 $ git clone https://github.com/pallets/flask18 $ cd flask19 # checkout the correct version20 $ git tag # shows the tagged versions21 $ git checkout latest-tag-found-above22 $ cd examples/tutorial2324Create a virtualenv and activate it::25Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9
lines 26–27why, one step back26 $ python3 -m venv .venv27 $ . .venv/bin/activateMinor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
lines 28–30why, one step back2829Or on Windows cmd::30Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9
lines 31–32why, one step back31 $ py -3 -m venv .venv32 $ .venv\Scripts\activate.batMinor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
lines 33–37why, one step back3334Install Flaskr::3536 $ pip install -e .37Merge remote-tracking branch 'origin/2.0.x'David Lordbefore adoption19f458f
line 38why, one step back38Or if you are using the main branch, install Flask from source beforeMinor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
lines 39–47why, one step back39installing Flaskr::4041 $ pip install -e ../..42 $ pip install -e .434445Run46---47Merge pull request #4646 from pallets/cli-app-envDavid Lordbefore adoptionae54727
line 48why, one step back48.. code-block:: textMinor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
line 49why, one step back49Merge pull request #4646 from pallets/cli-app-envDavid Lordbefore adoptionae54727
line 50why, one step back50 $ flask --app flaskr init-dbnew run debug docsDavid Lordbefore adoption74e5263
line 51why, one step back51 $ flask --app flaskr run --debugMinor docs fixes. (#3988)Joshua Bronsonbefore adoption8bfce88
lines 52–68why, one step back5253Open http://127.0.0.1:5000 in a browser.545556Test57----5859::6061 $ pip install '.[test]'62 $ pytest6364Run with coverage report::6566 $ coverage run -m pytest67 $ coverage report68 $ coverage html # open htmlcov/index.html in a browser