Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Include in the default from official Django templates

  • Loading branch information...
commit b4f669dac3bf027bc5136c2fd14655aa1bd6c635 1 parent 95d7394
@nanonyme nanonyme authored
Showing with 29 additions and 1 deletion.
  1. +1 −1 
  2. +28 −0 project_name/
2 
@@ -3,7 +3,7 @@
import sys
if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}")
from import execute_from_command_line
28 project_name/
@@ -0,0 +1,28 @@
+WSGI config for {{ project_name }} project.
+This module contains the WSGI application used by Django's development server
+and any production WSGI deployments. It should expose a module-level variable
+named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
+this application via the ``WSGI_APPLICATION`` setting.
+Usually you will have the standard Django WSGI application here, but it also
+might make sense to replace the whole Django WSGI application with a custom one
+that later delegates to the Django one. For example, you could introduce WSGI
+middleware here, or combine a Django application with an application of another
+import os
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}")
+# This application object is used by any WSGI server configured to use this
+# file. This includes Django's development server, if the WSGI_APPLICATION
+# setting points here.
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()
+# Apply WSGI middleware here.
+# from helloworld.wsgi import HelloWorldApplication
+# application = HelloWorldApplication(application)
Please sign in to comment.
Something went wrong with that request. Please try again.