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 <vitor.tor...@gmail.com> > 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 django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > 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 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.