Changes between Initial Version and Version 1 of Ticket #21567, comment 3


Ignore:
Timestamp:
Dec 6, 2013, 1:52:56 AM (11 years ago)
Author:
Aymeric Augustin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21567, comment 3

    initial v1  
    11You 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
    22
    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.
     3Apache 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.
Back to Top