Salysali/df-web-development-using-python-3d2c
0
1what is flask?
2 flask is a web micro frame work in python.
3Armin Ronacher, who leads an international group of Python enthusiasts named pocco, develops it.
4Flask is based on Werkzeug WSGI toolkit and Jinja2 template engine.
5Both are Pocco projects.
6
7WSGI
8----
9Web Server Gateway Interface has been adopted as a standard for python web application development.
10WSGI is a specification for a universal interface between the web server and web application.
11
12JINJA2
13---------
14Jinja2 is a popular templating engine for python .
15A web templating system combines a template with a certain data source to render dynamic web pages.
16
17A Jinja template is simply a text file. Jinja can generate any text based format (Html,Xml,CSV,Latex,etc). A jinja template doesn't need to have a specific extension: .html, .xml, or anyother extensions is just fine.
18
19Delimeters
20---------------
21{% ... %}------ statements
22{ { .... } }--------Expression
23{# ... # }--------comments
24{ % extends 'filename.html' %}
25{% block content %}
26{% end block%}
27
28{ % for i in items % }
29{ % end for %}