Flask Command Line

Happy New Year! Hope everything becomes better in 2018! From the version 0.11.0, Flask began to support shell command. Something you probably you already saw when you are using other web project, such as Django: ./manage.py shell To achieve that, it is quite simple as it only needs two steps: 1. Set up the environment.
Read More »

Using Jinja2 with Flask

Jinja2 is a flexible HTML Template along with with Flask, another commonly used Flask template is Mako. Install Jinja2 Install with PIP pip install jinja2 Basic Operation 1. Determine whether a variable is set or not {# user is a variable, and none is not None #} {% if user is not none %} in
Read More »