This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Nov 05 03:18:56 -0800 2009 | |
| |
INSTALL.txt | Thu Nov 05 04:03:25 -0800 2009 | |
| |
README.markdown | Thu Nov 05 04:03:25 -0800 2009 | |
| |
multisite/ | Tue Nov 17 13:41:32 -0800 2009 | |
| |
setup.py | Thu Nov 05 03:44:05 -0800 2009 |
README.markdown
README
Get the code via svn:
git clone git://github.com/shestera/django-multisite.git django-multisite
Add the django-multisite/multisite folder to your PYTHONPATH.
Replace your SITE_ID in settings.py to:
from multisite.threadlocals import SiteIDHook
SITE_ID = SiteIDHook()
Add to settings.py TEMPLATE_LOADERS:
TEMPLATE_LOADERS = (
'multisite.template_loader.load_template_source',
'django.template.loaders.app_directories.load_template_source',
)
Edit to settings.py MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
...
'multisite.middleware.DynamicSiteMiddleware',
...
)
Create a directory settings.TEMPLATE_DIRS directory with the names of domains, such as:
mkdir templates/example.com







