2010/3/16 shitiz <bansal....@gmail.com> > Hi, > I have a pecuilar requirement and was wondering the best possible > solution for it. > My site powered by django will run a on at least a few hundred > different domain names(something like google apps). I am thinking of > using Django's site framework to handle the database. Few properties > in my settings file (template directories,site_id,email,logoimage for > example) need to change with the domain name. >
Hi, I had similar requirements and since I'm using GeoDjango (which is not thread-safe due to its external libraries restrictions) I deployed the whole in a multi-process single-threaded mod_wsgi environment. I used the middleware approach to alter global settings by request domain, part of the configuration for each domain is stored in the DB and added to the context by a custom context processor. So far so good, but the sites were silently launched one month ago and they are still lacking many visitors. My starting point was: http://www.djangosnippets.org/snippets/1099/ Good luck! -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.