This repository contains the source code that I demonstrate in my "Python Web Development with Flask" presentation.
To install and run these examples you need:
- Python 2.7 or 3.3+
- virtualenv (not required if you are using Python 3.4)
- git (only to clone this repository)
The commands below set everything up to run the examples:
$ git clone https://github.com/miguelgrinberg/flask-examples.git
$ cd flask-examples
$ virtualenv venv
$ . venv/bin/activate
(venv) pip install -r requirements.txt
Note for Python 3.4 users: replace virtualenv
with pyvenv
.
Note for Microsoft Windows users: replace the virtual environment activation command above with venv\Scripts\activate
.