Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
multisite Edit template loader Nov 17, 2009
.gitignore Init Nov 5, 2009
INSTALL.txt Edit README Nov 5, 2009
README.markdown Edit README Nov 5, 2009
setup.py Edit app name Nov 5, 2009



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:


Edit to settings.py MIDDLEWARE_CLASSES:


Create a directory settings.TEMPLATE_DIRS directory with the names of domains, such as:

mkdir templates/example.com