diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-26 15:22:08 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-26 15:22:32 -0400 |
| commit | 4db64e8491fb154f65e824b4a0f7d27e66b477cc (patch) | |
| tree | 39b8f7565ae24408b789b22d35f0deb1d3080cd2 | |
| parent | 8e77ac634ffcbeab634aa8c3f1bda7e6fab229a0 (diff) | |
[1.6.x] Fixed #21567 -- Documented how to deploy multiple sites using the sites framework.
Backport of 7b9537fb27 from master
| -rw-r--r-- | docs/ref/contrib/sites.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/contrib/sites.txt b/docs/ref/contrib/sites.txt index eb107ffcdf..92533cb52b 100644 --- a/docs/ref/contrib/sites.txt +++ b/docs/ref/contrib/sites.txt @@ -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 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 =================================== |
