On Thursday 10 April 2008 08:17:40 Gábor Farkas wrote:

> that would work, but there are 2 problems with it:
>
> 1. i have to do it for every request (this could be solved maybe
> with a middleware-based approach)

You could also do it in your urls.py e.g.:

urls = [
  ('/foo/', fooviewfunc),
  ('/bar/', barviewfunc),
]

urlpatterns = patterns('', [(regex, normalise_request_unicode(func)
                             for (regex, func) in urls])


Luke

-- 
"Pessimism: Every dark cloud has a silver lining, but lightning kills 
hundreds of people each year trying to find it." (despair.com)

Luke Plant || http://lukeplant.me.uk/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to