You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
284 B
14 lines
284 B
2 years ago
|
from aiohttp import web
|
||
|
import jinja2
|
||
|
from .routes import setup_routes
|
||
|
import aiohttp_jinja2
|
||
|
|
||
|
|
||
|
async def create_app():
|
||
|
app = web.Application()
|
||
|
aiohttp_jinja2.setup(app,
|
||
|
loader = jinja2.PackageLoader('demo', 'templates')
|
||
|
)
|
||
|
setup_routes(app)
|
||
|
return app
|