I want to serve specialized RSS feeds on a different subdomain from the rest of the site.
Is it possible to use the site structure to use different urls.py and settings.py files in the same django instance . or I need to configure two apache locations and just set the various settings.py files in apache conf.
The reason I need to install two urls.py files is to avoid duplicate content. I do not want the main site to be available on rss.example.com, and I do not want the specialized channels available on example.com
Serving them from a single instance of django would be ideal, because we are on a shared hosting with limited memory, and it seems that such a waste has an open instance that only serves rss.
edit . I came to the conclusion that for several instances with separate urls.py files it will be easier for me ... but I found this article describing how to do this using one instance:
http://effbot.org/zone/django-multihost.htm
In the end, I wrote a structure to run multiple copies of the site in one instance of django.
The main idea is to change the SITE_ID setting on the fly for each request and load alternative settings from the database. It does this based on the domain and by default uses SITE_ID = 1 (when it cannot find anything)
All settings in the settings.py file act as default values, which are overridden by the parameters stored in the database for the current site.
It works very well :) and it works in http://rootbuzz.com mode
django apache settings rss
Jiaaro
source share