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

Тел: +7 965 3737 888

433

Просмотров

0

Ответов

lazy url reverse()

Since the decorators of your views are evaluated during parsing urls.py you have an 'chicken - egg' problem. The method reverse() can't be used since urls.py is not read.

This snippets evaluates reverse() lazy.

Related ticket: 5925

Django 1.4 (current trunk) has a lazy reverse.

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