mirror of
https://github.com/django/django.git
synced 2025-03-28 18:20:49 +00:00
[1.6.x] Fixed #21567 -- Documented how to deploy multiple sites using the sites framework.
Backport of 7b9537fb27 from master
This commit is contained in:
parent
8e77ac634f
commit
4db64e8491
@ -274,6 +274,11 @@ will also be created after Django creates the test database. To set the
|
|||||||
correct name and domain for your project, you can use an :doc:`initial data
|
correct name and domain for your project, you can use an :doc:`initial data
|
||||||
fixture </howto/initial-data>`.
|
fixture </howto/initial-data>`.
|
||||||
|
|
||||||
|
In order to serve different sites in production, you'd create a separate
|
||||||
|
settings file with each ``SITE_ID`` (perhaps importing from a common settings
|
||||||
|
file to avoid duplicating shared settings) and then specify the appropriate
|
||||||
|
:envvar:`DJANGO_SETTINGS_MODULE` for each site.
|
||||||
|
|
||||||
Caching the current ``Site`` object
|
Caching the current ``Site`` object
|
||||||
===================================
|
===================================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user