This repository contains the software that accompanies my O'Reilly training video "An Introduction to Flask".
Python HTML Shell Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
1a example code, first release Aug 3, 2014
1b example code, first release Aug 3, 2014
2a example code, first release Aug 3, 2014
2b example code, first release Aug 3, 2014
2c example code, first release Aug 3, 2014
2d example code, first release Aug 3, 2014
2e example code, first release Aug 3, 2014
2f example code, first release Aug 3, 2014
2g example code, first release Aug 3, 2014
2h example code, first release Aug 3, 2014
3a example code, first release Aug 3, 2014
3b example code, first release Aug 3, 2014
3c example code, first release Aug 3, 2014
3d missing quotes in img tag Feb 6, 2016
4a example code, first release Aug 3, 2014
4b example code, first release Aug 3, 2014
4c example code, first release Aug 3, 2014
5a example code, first release Aug 3, 2014
6a example code, first release Aug 3, 2014
6b Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016
7a Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016
8a Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016
8b Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016
8c Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016
9a Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016
9b example code, first release Aug 3, 2014
9c example code, first release Aug 3, 2014
.gitignore example code, first release Aug 3, 2014
LICENSE example code, first release Aug 3, 2014
README.md Added information about the example projects in this repository Feb 6, 2016
requirements.txt Changed current_user.is_authenticated() to current_user.is_authentica… Feb 6, 2016

README.md

An Introduction to Flask

This repository contains the software that accompanies my O'Reilly training video An Introduction to Flask.

An Introduction to Flask

Instructions on how to use these examples is included in the appropriate segments of the class.

Contents

If you want to have an idea of the contents of this class, below is a list of the projects included in this repository.

  • 1a: Hello, World, Flask version.
  • 1b: Dynamic routes.
  • 2a: Templates, and the render_template() function.
  • 2b: Rendering lists of elements in templates.
  • 2c: Rendering data structures.
  • 2d: Using template variables and conditionals.
  • 2e: Using template macros.
  • 2f: Implementing templates with Twitter Bootstrap and the Flask-Bootstrap extension.
  • 2g: Custom error pages, and template inheritance.
  • 2h: Page links with the url_for() function.
  • 3a: Introduction to web forms and Flask's request object.
  • 3b: Managing forms with the Flask-WTF extension.
  • 3c: Rendering Bootstrap forms with Flask-Bootstrap.
  • 3d: File uploads.
  • 4a: Using Flask's session context object.
  • 4b: Request hooks, and the g context object.
  • 4c: Example of many ways to create responses to requests.
  • 5a: Introduction to relational databases and the Flask-SQLAlchemy extension.
  • 6a: Password hashing.
  • 6b: Logging users in and out with the Flask-Login extension.
  • 7a: Refactoring of the single script 6b application as a scalable project structure.
  • 8a: Unit tests.
  • 8b: Testing routes using the Flask test client.
  • 8c: Additional tests based on coverage reports.
  • 9a: Production mode change to send emails to administrators when a crash occurs.
  • 9b: Example application to deploy to Heroku.
  • 9c: Example application to deploy to a Linux server.