#21567: sites SITE_ID
-------------------------------------+-------------------------------------
     Reporter:  yakoub abaya         |                    Owner:  nobody
  <sting606@…>                       |                   Status:  new
         Type:  Bug                  |                  Version:  1.6
    Component:  Documentation        |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  SITE_ID              |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by aaugustin):

 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

 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21567#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/091.f34aa56c72a4e6ecb61201a49f50c6f7%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to