Skip to content

Commit

Permalink
[1.7.x] Fixed #21567 -- Documented how to deploy multiple sites using…
Browse files Browse the repository at this point in the history
… the sites framework.

Backport of 7b9537f from master
  • Loading branch information
timgraham committed Aug 26, 2014
1 parent 1b89f97 commit 4f0916c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ref/contrib/sites.txt
Expand Up @@ -272,6 +272,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
===================================

Expand Down

0 comments on commit 4f0916c

Please sign in to comment.