-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom path to wsgi application #70
Comments
Wouldn't settings.WSGI_APPLICATION be the place to specify the wsgi app? https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-WSGI_APPLICATION |
That I think does not allow you to fully wrap the application, such as even before django itself get called. |
I'm not really sure what you mean by "wrapping the application before django gets called" - how would that work exactly? In any case, as far as i can see, having the wsgi script respect the WSGI_APPLICATION setting of django (just as the "runserver" command does) is something that seems a good idea in any case... |
I've merged #78, I guess that solves the issue in a generic way? If needed you can wrap/modify the wsgi application object that way. Can you take a look at djangorecipe 1.9 and its |
Currently the generated .wsgi script pull out the
application
fromdjango.core.handlers.wsgi.WSGIHandler()
. Sometimes it's desirable to specify custom application callable, such as when integrating with third party debug application. Ideally, with settings such as:-The generated .wsgi script will import the application as is, rather than calling
djangorecipe.wsgi.main()
function.I've worked a bit on this but so far I have to follow djangorecipe approach of calling something like
myproject.wsgi.main()
. Since default django template already includemyproject.wsgi
module with attribute namedapplication
, it would be much better if we can follow the same pattern.The text was updated successfully, but these errors were encountered: