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
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-multihostsettings-0.1.zip.
File metadata
- Download URL: django-multihostsettings-0.1.zip
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78721796e4cb713a5d1290ae4ea9306150133bfb2365dcd8a1e53d10543ed94b
|
|
| MD5 |
5450a949198c007c7feb328d95a3a425
|
|
| BLAKE2b-256 |
df29285690a72c18e3cdb5728685af4e23ff60245f81352692fbef41e3876b61
|