From e054f0d58f829f91a3048634b3b1ed48133971f4 Mon Sep 17 00:00:00 2001 From: Qkbrauyvi <2370186969@qq.com> Date: Tue, 25 May 2021 21:13:28 +0800 Subject: [PATCH] application = get_wsgi_application() --- SpiderWebsite/SpiderWebsite/wsgi.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SpiderWebsite/SpiderWebsite/wsgi.py diff --git a/SpiderWebsite/SpiderWebsite/wsgi.py b/SpiderWebsite/SpiderWebsite/wsgi.py new file mode 100644 index 0000000..c9df333 --- /dev/null +++ b/SpiderWebsite/SpiderWebsite/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for SpiderWebsite project. + +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.2/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SpiderWebsite.settings') + +application = get_wsgi_application() \ No newline at end of file