from starlette.applications import Starlette
from starlette.middleware.gzip import GZipMiddleware
from starlette.middleware.cors import CORSMiddleware
from starlette.staticfiles import StaticFiles

app = Starlette(debug=False, template_directory='src/site/templates')
app.add_middleware(GZipMiddleware, minimum_size=500)
app.add_middleware(CORSMiddleware, allow_origins=['*'])
app.mount('/static', StaticFiles(directory='src/site/media'), name='static')

[((6, 6, 6, 69), 'starlette.applications.Starlette', 'Starlette', (), '', False, 'from starlette.applications import Starlette\n'), ((9, 21, 9, 60), 'starlette.staticfiles.StaticFiles', 'StaticFiles', (), '', False, 'from starlette.staticfiles import StaticFiles\n')]