Skip to main content

Provides conditional settings according to the host name.

Project description

=====
Django MultiHostSettings
=====

Provides conditional settings according to the host name.

Quick start
-----------

1. Add "MultiHostSettingsMiddleware" in the MIDDLEWARE_CLASSES in your settings.py :

MIDDLEWARE_CLASSES = (
...
'multihostsettings.middleware.MultiHostSettingsMiddleware',
)

2. Create one file per domain

3. List domains and setting files in the MULTIHOST_SETTINGS in your settings.py :

MULTIHOST_SETTINGS = {
'cms1.dev.net' : 'TransCMS.settings.cms1'
...
}

4. Instead of :

from django.conf import settings

5. Use :

from multihostsettings import localsettings as settings

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-multihostsettings-0.1.zip (5.4 kB view details)

Uploaded Source

File details

Details for the file django-multihostsettings-0.1.zip.

File metadata

File hashes

Hashes for django-multihostsettings-0.1.zip
Algorithm Hash digest
SHA256 78721796e4cb713a5d1290ae4ea9306150133bfb2365dcd8a1e53d10543ed94b
MD5 5450a949198c007c7feb328d95a3a425
BLAKE2b-256 df29285690a72c18e3cdb5728685af4e23ff60245f81352692fbef41e3876b61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page