Posts Tagged ‘http handler’

Multiple websites in the same Django project

Tuesday, August 12th, 2008

Want to run two websites from the same Django project? It took me a white to find this one out so I thought I’d post it up here.
Basically you need a couple of steps… First add django.contrib.sites to the installed apps in your settings.py file. Then run a syncdb to create the new tables in database. Head over to the admin panel (or use the python API) and add x number of websites.
The problem now is your settings file needs to state what website it is going to be with the SITE_ID parameter. Therefore you need to make a [...]