[extensions-web/django/upgrade-1.8] django: added wsgi handler



commit b132b01d47ba4c83715a29e53768e68a6de4b501
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Thu Oct 27 00:35:24 2016 +0300

    django: added wsgi handler

 sweettooth/wsgi.py |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/wsgi.py b/sweettooth/wsgi.py
new file mode 100644
index 0000000..9edd88c
--- /dev/null
+++ b/sweettooth/wsgi.py
@@ -0,0 +1,16 @@
+"""
+WSGI config for sweettooth 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/1.8/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sweettooth.settings")
+
+application = get_wsgi_application()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]