Skip to content
Myr

index.rst

This file

Path

docs/tutorial/index.rst

66 lines · 2.0 KiB

Last changed by

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

History of this file

Take it

The walk stopped after 200 commits: lines older than bce8ec7 point at it.

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

lines 1–5why, one step back
1.. _tutorial:
23Tutorial4========5

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 6–8why, one step back
6.. toctree::
7 :caption: Contents:8 :maxdepth: 1

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

line 9why, one step back
9

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 10–20why, one step back
10 layout
11 factory12 database13 views14 templates15 static16 blog17 install18 tests19 deploy20 next

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

line 21why, one step back
21

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 22–25why, one step back
22This tutorial will walk you through creating a basic blog application
23called Flaskr. Users will be able to register, log in, create posts,24and edit or delete their own posts. You will be able to package and25install the application on other computers.

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

line 26why, one step back
26

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 27–30why, one step back
27.. image:: flaskr_index.png
28 :align: center29 :class: screenshot30 :alt: screenshot of index page

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

line 31why, one step back
31

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 32–33why, one step back
32It's assumed that you're already familiar with Python. The `official
33tutorial`_ in the Python docs is a great way to learn or review first.

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

line 34why, one step back
34

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

line 35why, one step back
35.. _official tutorial: https://docs.python.org/3/tutorial/

Merge pull request #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7

line 36why, one step back
36

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 37–66why, one step back
37While it's designed to give a good starting point, the tutorial doesn't
38cover all of Flask's features. Check out the :ref:`quickstart` for an39overview of what Flask can do, then dive into the docs to find out more.40The tutorial only uses what's provided by Flask and Python. In another41project, you might decide to use :ref:`extensions` or other libraries to42make some tasks simpler.4344.. image:: flaskr_login.png45 :align: center46 :class: screenshot47 :alt: screenshot of login page4849Flask is flexible. It doesn't require you to use any particular project50or code layout. However, when first starting, it's helpful to use a more51structured approach. This means that the tutorial will require a bit of52boilerplate up front, but it's done to avoid many common pitfalls that53new developers encounter, and it creates a project that's easy to expand54on. Once you become more comfortable with Flask, you can step out of55this structure and take full advantage of Flask's flexibility.5657.. image:: flaskr_edit.png58 :align: center59 :class: screenshot60 :alt: screenshot of login page6162:gh:`The tutorial project is available as an example in the Flask63repository <examples/tutorial>`, if you want to compare your project64with the final product as you follow the tutorial.6566Continue to :doc:`layout`.