Add all the templates and the routes

This commit is contained in:
Brian Duggan
2018-05-25 12:31:29 -04:00
parent 5007a246fb
commit b9de54d211
9 changed files with 104 additions and 21 deletions

View File

@@ -1,10 +1,15 @@
import tornado.web
from atst.handlers.main import MainHandler
from atst.home import home
from tornado.web import url
def make_app(**kwargs):
app = tornado.web.Application([
(r"/", MainHandler),
url( r"/", MainHandler, {'page': 'home'}, name='home' ),
url( r"/requests", MainHandler, {'page': 'requests'}, name='requests' ),
url( r"/users", MainHandler, {'page': 'users'}, name='users' ),
url( r"/reports", MainHandler, {'page': 'reports'}, name='reports' ),
url( r"/calculator", MainHandler, {'page': 'calculator'}, name='calculator' ),
],
template_path = home.child('templates'),
static_path = home.child('static'),