Skip to content
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

In the django wsgi script, setup_environ is deprecated, should be replaced by os.environ['DJANGO_SETTINGS_MODULE'] #63

Closed
benwah opened this issue Feb 5, 2013 · 4 comments
Labels

Comments

@benwah
Copy link

benwah commented Feb 5, 2013

See here. https://docs.djangoproject.com/en/1.4/releases/1.4/#django-core-management-setup-environ. Will not be included in django 1.6

Also setup_environ doesn't play well with multiple django applications running as virtual hosts under apache, using mod_wsgi, I have experienced leaked DJANGO_SETTINGS_MODULE variables between apps. using os.environ['DJANGO_SETTINGS_MODULE'] = 'settingsmodule' resolves this.

@rvanlaar
Copy link
Owner

rvanlaar commented Feb 5, 2013

Thank you for your comment.

The mod_wsgi issue has been resolved in the latest Django Recipe.
It is now possible to add initialization code which fixes this issue.

https://github.com/rvanlaar/djangorecipe#several-wsgi-scripts-for-one-apache-virtual-host-instance

@benwah
Copy link
Author

benwah commented Feb 5, 2013

Ok great! Will use that. Closing issue.

@rvanlaar
Copy link
Owner

rvanlaar commented Feb 5, 2013

@benwah: I'm leaving the issue open for now due to your remark about the setup environ. This needs to be fixed in a newer version of Django recipe.

@reinout
Copy link
Collaborator

reinout commented May 27, 2014

setup_environ isn't used anymore, so the issue can be closed.

@reinout reinout closed this as completed May 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants