why dont you use localurl http://code.google.com/p/django-localeurl/
so you have the language automatically in the URL and you do not need to change anything... -- Hinnack 2010/1/14 vitor torres <[email protected]> > Hi. I'm building blog and I want to cache the main page wich is a > archive_index generic view and I want to be able to choose between > languages wich means that I must do different cache depending on the > language. So I tried to use the the decorator @vary_on_headers('Accept- > language') in my urls.py but I had an error: 'MethodDecoratorAdaptor' > object has no attribute 'has_header'. Could someone please tell me > what am I doing wrong or if it feaseable to do that with a generic > view. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<django-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > >--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to [email protected].
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.

