django-multisite 0.2.3

Multisite for Django

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Leonid S Shestera
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ Django Plugins
django-multisite is a multisite plugin in Django.

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

Last updated on June 7th, 2012

requirements

#multisite plugin #Django multisite #multisite folder #Django #multisite #plugin #Python

Add your review!

SUBMIT