moviewyrm/bookwyrm/wsgi.py

19 lines
433 B
Python
Raw Normal View History

2020-01-25 06:32:41 +00:00
"""
WSGI config for bookwyrm project.
2020-01-25 06:32:41 +00:00
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from environs import Env
2020-01-25 06:32:41 +00:00
from django.core.wsgi import get_wsgi_application
Env.read_env()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bookwyrm.settings")
2020-01-25 06:32:41 +00:00
application = get_wsgi_application()