I want to serve up specialized RSS feeds on a different subdomain from the rest of the site.
Can I use the sites framework to use a different urls.py and settings.py file within a single django instance. or do I need to set up two apache locations and just set the different settings.py files in the apache conf.
The reason I need to set up two urls.py files is to avoid duplicate content. I don't want the main site to be available at rss.example.com and I don't want the specialized feeds to be accessible on example.com
Serving them from a single django instance would be ideal because we're on shared hosting with limited memory, and it seems like such a waste to have an instance open that only serves up rss.
edit: I concluded that multiple instances with seperate urls.py files would be easiest for me... but I found this article describing how to do it using a single instance:
http://effbot.org/zone/django-multihost.htm
Solution: Django tupperware
I ended up writing a framework for running multiple copies of a site on a single django instance.
The basic idea is to change out the SITE_ID
setting on the fly for each request and load alternate settings from the database. It does this based on domain and uses SITE_ID = 1
by default (when it can't find anything)
All settings in the settings.py file act as defaults which are overridden by the settings stored in the database for the current site.
It works pretty well :) and it's running in production at http://rootbuzz.com