Changes between Initial Version and Version 1 of Ticket #21567, comment 3
- Timestamp:
- Dec 6, 2013, 1:52:56 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21567, comment 3
initial v1 1 1 You create two python modules, like `my_project.settings_a` and `my_project.settings_b`, and select the one to use with the `DJANGO_SETTINGS_MODULE` environment variable, as documented here: https://docs.djangoproject.com/en/dev/topics/settings/#designating-the-settings 2 2 3 Apache handles environment variable in a way I'm unable to describe and tends to bite beginners . That's why the docs suggest selecting the settings to use in the `wsgi` module when you're using Apache + mod_wsgi : https://docs.djangoproject.com/en/dev/topics/settings/#on-the-server-mod-wsgi — but that's really a workaround for a limitation of Apache, you simply set `DJANGO_SETTINGS_MODULE` on other application servers such as gunicorn or uwsgi.3 Apache handles environment variable in a way I'm unable to describe and tends to bite beginners and experienced people alike. That's why the docs suggest selecting the settings to use in the `wsgi` module when you're using Apache + mod_wsgi : https://docs.djangoproject.com/en/dev/topics/settings/#on-the-server-mod-wsgi — but that's really a workaround for a limitation of Apache, you simply set `DJANGO_SETTINGS_MODULE` on other application servers such as gunicorn or uwsgi.