0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixed #21567 -- Documented how to deploy multiple sites using the sites framework.

This commit is contained in:
Tim Graham 2014-08-26 15:22:08 -04:00
parent cfee67ae10
commit 7b9537fb27

View File

@ -268,6 +268,11 @@ will also be created after Django creates the test database. To set the
correct name and domain for your project, you can use a :ref:`data migration
<data-migrations>`.
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
===================================