wsgi.py 413 Bytes
Newer Older
Jon Yu's avatar
Jon Yu committed
1
"""
2
WSGI config for {{ project_name }} project.
Jon Yu's avatar
Jon Yu committed
3
4
5
6
7
8
9
10
11
12
13

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

14
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings')
Jon Yu's avatar
Jon Yu committed
15
16

application = get_wsgi_application()