Sections
Daniel
Moriah
Photos
Recipes
Software
Other
About
Contact
Show/Hide Search
February 24, 2007

[Daniel] Django & Unicode URLs

This bit me so I have to post it. When using Django's (excellent) "newforms" library, if you use any of the posted data to create a URL that you're redirecting to, make sure you run a "str()" on that string. Dreamhost's "wgsi.py"/"fcgi.py" die if given a Unicode string in an "HttpResponseRedirect".

Add A Comment