This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
mandaye-meyzieu/rp_meyzieu/wsgi.py

16 lines
395 B
Python

import os
os.environ.setdefault("MANDAYE_CONFIG_MODULE", "rp_meyzieu.config")
from beaker.middleware import SessionMiddleware
from whitenoise import WhiteNoise
from rp_meyzieu import config
from mandaye.server import MandayeApp
application = SessionMiddleware(MandayeApp(), config.session_opts)
application_dev = WhiteNoise(application, root=config.static_root, prefix=config.static_url)