[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
parent
b3ae3117f9
commit
3d83d8138c
102 changed files with 26790 additions and 26749 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Tutorial — Flask Documentation (3.2.x)</title>
|
||||
<title>Keep Developing! — Flask Documentation (3.2.x)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=6625fa76" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/flask.css?v=b87c8d14" />
|
||||
<script src="../_static/documentation_options.js?v=56528222"></script>
|
||||
|
|
@ -15,8 +15,8 @@
|
|||
<link rel="icon" href="../_static/shortcut-icon.png"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="Project Layout" href="layout.html" />
|
||||
<link rel="prev" title="Quickstart" href="../quickstart.html" />
|
||||
<link rel="next" title="Templates" href="../templating.html" />
|
||||
<link rel="prev" title="Deploy to Production" href="deploy.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="Related">
|
||||
<h3>Navigation</h3>
|
||||
|
|
@ -28,65 +28,52 @@
|
|||
<a href="../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="layout.html" title="Project Layout"
|
||||
<a href="../templating.html" title="Templates"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="../quickstart.html" title="Quickstart"
|
||||
<a href="deploy.html" title="Deploy to Production"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">Flask Documentation (3.2.x)</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">Tutorial</a></li>
|
||||
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Tutorial</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">Keep Developing!</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="document">
|
||||
<div class="documentwrapper">
|
||||
<div class="bodywrapper">
|
||||
<div class="body" role="main">
|
||||
|
||||
<section id="tutorial">
|
||||
<h1>Tutorial<a class="headerlink" href="#tutorial" title="Link to this heading">¶</a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="layout.html">Project Layout</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="factory.html">Application Setup</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="database.html">Define and Access the Database</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="views.html">Blueprints and Views</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="templates.html">Templates</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="static.html">Static Files</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="blog.html">Blog Blueprint</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="install.html">Make the Project Installable</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="tests.html">Test Coverage</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="deploy.html">Deploy to Production</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="next.html">Keep Developing!</a></li>
|
||||
|
||||
<section id="keep-developing">
|
||||
<h1>Keep Developing!<a class="headerlink" href="#keep-developing" title="Link to this heading">¶</a></h1>
|
||||
<p>You’ve learned about quite a few Flask and Python concepts throughout
|
||||
the tutorial. Go back and review the tutorial and compare your code with
|
||||
the steps you took to get there. Compare your project to the
|
||||
<a class="reference external" href="https://github.com/pallets/flask/tree/main/examples/tutorial">example project</a>, which might look a bit
|
||||
different due to the step-by-step nature of the tutorial.</p>
|
||||
<p>There’s a lot more to Flask than what you’ve seen so far. Even so,
|
||||
you’re now equipped to start developing your own web applications. Check
|
||||
out the <a class="reference internal" href="../quickstart.html"><span class="doc">Quickstart</span></a> for an overview of what Flask can do, then
|
||||
dive into the docs to keep learning. Flask uses <a class="reference external" href="https://palletsprojects.com/p/jinja/">Jinja</a>, <a class="reference external" href="https://palletsprojects.com/p/click/">Click</a>,
|
||||
<a class="reference external" href="https://palletsprojects.com/p/werkzeug/">Werkzeug</a>, and <a class="reference external" href="https://palletsprojects.com/p/itsdangerous/">ItsDangerous</a> behind the scenes, and they all have
|
||||
their own documentation too. You’ll also be interested in
|
||||
<a class="reference internal" href="../extensions.html"><span class="doc">Extensions</span></a> which make tasks like working with the database or
|
||||
validating form data easier and more powerful.</p>
|
||||
<p>If you want to keep developing your Flaskr project, here are some ideas
|
||||
for what to try next:</p>
|
||||
<ul class="simple">
|
||||
<li><p>A detail view to show a single post. Click a post’s title to go to
|
||||
its page.</p></li>
|
||||
<li><p>Like / unlike a post.</p></li>
|
||||
<li><p>Comments.</p></li>
|
||||
<li><p>Tags. Clicking a tag shows all the posts with that tag.</p></li>
|
||||
<li><p>A search box that filters the index page by name.</p></li>
|
||||
<li><p>Paged display. Only show 5 posts per page.</p></li>
|
||||
<li><p>Upload an image to go along with a post.</p></li>
|
||||
<li><p>Format posts using Markdown.</p></li>
|
||||
<li><p>An RSS feed of new posts.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>This tutorial will walk you through creating a basic blog application
|
||||
called Flaskr. Users will be able to register, log in, create posts,
|
||||
and edit or delete their own posts. You will be able to package and
|
||||
install the application on other computers.</p>
|
||||
<img alt="screenshot of index page" class="screenshot align-center" src="../_images/flaskr_index.png" />
|
||||
<p>It’s assumed that you’re already familiar with Python. The <a class="reference external" href="https://docs.python.org/3/tutorial/">official
|
||||
tutorial</a> in the Python docs is a great way to learn or review first.</p>
|
||||
<p>While it’s designed to give a good starting point, the tutorial doesn’t
|
||||
cover all of Flask’s features. Check out the <a class="reference internal" href="../quickstart.html"><span class="doc">Quickstart</span></a> for an
|
||||
overview of what Flask can do, then dive into the docs to find out more.
|
||||
The tutorial only uses what’s provided by Flask and Python. In another
|
||||
project, you might decide to use <a class="reference internal" href="../extensions.html"><span class="doc">Extensions</span></a> or other libraries
|
||||
to make some tasks simpler.</p>
|
||||
<img alt="screenshot of login page" class="screenshot align-center" src="../_images/flaskr_login.png" />
|
||||
<p>Flask is flexible. It doesn’t require you to use any particular project
|
||||
or code layout. However, when first starting, it’s helpful to use a more
|
||||
structured approach. This means that the tutorial will require a bit of
|
||||
boilerplate up front, but it’s done to avoid many common pitfalls that
|
||||
new developers encounter, and it creates a project that’s easy to expand
|
||||
on. Once you become more comfortable with Flask, you can step out of
|
||||
this structure and take full advantage of Flask’s flexibility.</p>
|
||||
<img alt="screenshot of edit page" class="screenshot align-center" src="../_images/flaskr_edit.png" />
|
||||
<p><a class="reference external" href="https://github.com/pallets/flask/tree/main/examples/tutorial">The tutorial project is available as an example in the Flask
|
||||
repository</a>, if you want to compare your project
|
||||
with the final product as you follow the tutorial.</p>
|
||||
<p>Continue to <a class="reference internal" href="layout.html"><span class="doc">Project Layout</span></a>.</p>
|
||||
<p>Have fun and make awesome applications!</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
|
@ -97,18 +84,21 @@ with the final product as you follow the tutorial.</p>
|
|||
<span id="sidebar-top"></span>
|
||||
<div class="sphinxsidebar" role="navigation" aria-label="Main">
|
||||
<div class="sphinxsidebarwrapper">
|
||||
|
||||
|
||||
|
||||
|
||||
<p class="logo"><a href="../index.html">
|
||||
<img class="logo" src="../_static/flask-vertical.png" alt="Logo of Flask"/>
|
||||
</a></p>
|
||||
|
||||
|
||||
<h3>Navigation</h3>
|
||||
<ul>
|
||||
<li><a href="../index.html">Overview</a>
|
||||
<ul>
|
||||
<li>Previous: <a href="../quickstart.html" title="previous chapter">Quickstart</a>
|
||||
<li>Next: <a href="layout.html" title="next chapter">Project Layout</a>
|
||||
<li><a href="index.html">Tutorial</a>
|
||||
<ul>
|
||||
<li>Previous: <a href="deploy.html" title="previous chapter">Deploy to Production</a>
|
||||
<li>Next: <a href="../templating.html" title="next chapter">Templates</a></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -131,4 +121,4 @@ with the final product as you follow the tutorial.</p>
|
|||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.1.3.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue