Hi all I can't figure out how to change TEMPLATE_DIRS according to the URL used.
My purpose is to view two versions of the same site, e.g. mysite/v1/ and mysite/v2/, but keep the same codebase. This is just for development so people in several countries can view the site and put in their opinion. I've tried a few methods, e.g. setting an environment variable in apache and picking that up in settings. This unfortunately requires many page refreshes to work, for some reason. I've set MaxRequestsPerChild to 1. <Location /v1> ... SetEnv MAP_SITE_VERSION v1 ... </Location> Is there another way? I could pick up the version in the view from the URL however this would require significant changes to the code. Perhaps there's a way to pick up the HTTP request parameters in settings? Thanks Will --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---