This might be overkill, but you could use middleware and parse for the version number in request.path:
from django.conf import settings from django.http import HttpResponseRedirect from mysite import settings as local_settings class DetectSiteVersion(object): def __init__(self): self.v2_templates = local_settings.VERSION_TWO_TEMPLATE_DIRS def process_request(self, request): if str(request.path).find('v2') == -1: settings.TEMPLATE_DIRS = self.v2_templates + local_settings.TEMPLATE_DIRS return HttpResponseRedirect(request.path) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---