You could also just utilize your view code for the two so you don't need to change urls.
def index(request): ... # code here that determines whether you want the winterview or summerview if summerview: return summerview(request) elif winterview: return winterview(request) where summerview and winterview are the view functions that would return the other two. On Thu, Apr 17, 2008 at 6:10 AM, Massimiliano Ravelli < [EMAIL PROTECTED]> wrote: > > > > On 15 Apr, 10:41, martyn <[EMAIL PROTECTED]> wrote: > > I want a default saison (that could be stored in my settings file). > > It's not only a different design but it's also a different content > > sometimes. > > > > Is this can be done with middleware ? session ? > > I don't really know this aspect of django. > > What about a redirect ? > > from django.http import HttpResponseRedirect > def home_page(request): > return HttpResponseRedirect("http://domain.com/winter/ ") > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---