From: Lucian Ursu Date: Sat, 12 Jan 2013 10:28:49 +0000 (+0200) Subject: Moved wsgi.py inside the karmaworld package because that's where it belongs. X-Git-Tag: release-20150131~566^2^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8fd4fac26450a23aad03ed2eb62fc457e1ca7b6a;p=oweals%2Fkarmaworld.git Moved wsgi.py inside the karmaworld package because that's where it belongs. --- diff --git a/karmaworld/wsgi.py b/karmaworld/wsgi.py new file mode 100644 index 0000000..86b0b88 --- /dev/null +++ b/karmaworld/wsgi.py @@ -0,0 +1,28 @@ +""" +WSGI config for karmaworld 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 +framework. + +""" +import os + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "karmaworld.settings.dev") + +# 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) diff --git a/wsgi.py b/wsgi.py deleted file mode 100644 index 86b0b88..0000000 --- a/wsgi.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -WSGI config for karmaworld 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 -framework. - -""" -import os - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "karmaworld.settings.dev") - -# 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)