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

Тел: +7 965 3737 888

496

Просмотров

1

Ответов

Neat one off redirect

Use of a lambda function in the urlpatterns to easily redirect a url.

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

Ответы (1):

Ответadamlofts:11.09.2008
Ответ полезен? Да0/Нет0

I wasn't aware of redirect_to which works equally well.

Having said that: the method above is a little more pleasing colour-wise in my editor and perhaps more intuitive?