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 hashes)

Uploaded Source

Supported by

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