Задать вопрос

Тел: +7 965 3737 888

489

Просмотров

0

Ответов

urlquote() and urlencode() in one method

I think this method is handy, since you don't need to remember if you need urlquote or urlencode. It does both and adds a question mark between the path and the get parameters, if later are present.

And it works around a bug in Django: MultiValueDicts (request.GET, request.POST) are handled correctly.

Related: http://code.djangoproject.com/ticket/9089

Вопрос полезен? Да0/Нет0
file_2705.py(1.6Кб)
None