Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Primer on Jinja Templating

This repository holds the code for the Real Python Primer on Jinja Templating tutorial.

Dependencies

You should first create a virtual environment:

$ python -m venv venv
$ source venv/bin/activate

You can then install Jinja and Flask with pip:

(venv) $ python -m pip install Jinja2 flask

Alternatively, you can install the pinned dependencies from requirements.txt:

(venv) $ python -m pip install -r requirements.txt

This command will install the versions used in the tutorial of Jinja, Flask, and their dependencies.

Run the Web App

You can start your Flask development server by running app.py as a script:

(venv) $ python app.py

To see your home page, visit http://127.0.0.1:5000.

Author

License

Distributed under the MIT license. See LICENSE for more information.