Python web application thin glue layer with Tornado.
static
withmedia
separate,media
is the file ueser upload.- Use Jinja2 template render, not tornado default.
- Integrate WTForms forms framework, had HTML5 forms field support.
First, you need to install:
- Tornado - Web Framework and Server.
- WTForms - Forms verification.
- Jinja2 - HTML Template engine.
Pectin is Loosely coupled. You can choose what components you want to use.
For example, if you do want not use Jinja2, you can remove TemplateMixin
from BaseHandle
or modify TemplateMixin
to change Template engine.
$ cd example
$ python2 application.py # or python3.
Then, browser open 0.0.0.0:8888
$ ./setpy.py # need sudo.
Distribution on MIT LECENSE .
Overridden form the Hanger project.