MVC Web Application Framework with Tornado.
Project description
MVC Web Application Framework with Tornado, Python 2 and 3
To install the package run:
pip install dp-tornado
Bootstrap Code
-----
# -*- coding: utf-8 -*-
# __init__.py
import os
from dp_tornado import Bootstrap
kwargs = {
'initialize': True, # If this value specified True, create default directories and files.
'application_path': os.path.join(os.path.dirname(os.path.realpath(__file__))),
'scheduler': [
('* * * * *', 'scheduler.foo')
]
}
bootstrap = Bootstrap()
bootstrap.run(**kwargs)
Run
-----
$ pip install virtualenv # if required.
$ virtualenv ./venv
$ . ./venv/bin/activate
$ pip install dp-tornado
$ python __init__.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dp-tornado-0.9.3.tar.gz
(57.6 kB
view hashes)