Update app directory structure, add home and routes
This commit is contained in:
13
atst/app.py
Normal file
13
atst/app.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import tornado.web
|
||||
from atst.handlers.main import MainHandler
|
||||
from atst.home import home
|
||||
|
||||
def make_app(**kwargs):
|
||||
app = tornado.web.Application([
|
||||
(r"/", MainHandler),
|
||||
],
|
||||
template_path = home.child('templates'),
|
||||
static_path = home.child('static'),
|
||||
**kwargs
|
||||
)
|
||||
return app
|
Reference in New Issue
Block a user