About 50 results
Open links in new tab
  1. Welcome to Flask — Flask Documentation (3.1.x)

    Flask provides configuration and conventions, with sensible defaults, to get started. This section of the documentation explains the different parts of the Flask framework and how they can be used, …

  2. Quickstart — Flask Documentation (3.1.x)

    Flask provides a really simple way to give feedback to a user with the flashing system. The flashing system basically makes it possible to record a message at the end of a request and access it on the …

  3. Installation — Flask Documentation (3.1.x)

    Installation Python Version ¶ We recommend using the latest version of Python. Flask supports Python 3.9 and newer. Dependencies ¶ These distributions will be installed automatically when installing …

  4. Tutorial — Flask Documentation (3.1.x)

    The tutorial only uses what’s provided by Flask and Python. In another project, you might decide to use Extensions or other libraries to make some tasks simpler. Flask is flexible. It doesn’t require you to …

  5. Project Layout — Flask Documentation (3.1.x)

    from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'Hello, World!' However, as a project gets bigger, it becomes overwhelming to keep all the code in one file. Python …

  6. API — Flask Documentation (3.1.x)

    API ¶ This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical …

  7. Using async and await — Flask Documentation (3.1.x)

    Traditional Flask views will still be appropriate for most use cases, but Flask’s async support enables writing and using code that wasn’t possible natively before. Background tasks ¶ Async functions will …

  8. Templates — Flask Documentation (3.1.x)

    In Flask, Jinja is configured to autoescape any data that is rendered in HTML templates. This means that it’s safe to render user input; any characters they’ve entered that could mess with the HTML, …

  9. Development Server — Flask Documentation (3.1.x)

    Development Server ¶ Flask provides a run command to run the application with a development server. In debug mode, this server provides an interactive debugger and will reload when code is changed.

  10. Define and Access the Database — Flask Documentation (3.1.x)

    $ flask --app flaskr init-db Initialized the database. There will now be a flaskr.sqlite file in the instance folder in your project. Continue to Blueprints and Views.