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

Тел: +7 965 3737 888

499

Просмотров

0

Ответов

Flatpage Suggester Template tag for 404 templates

<p>This template tag finds FlatPages with urls 'similar' to the given request_path. It takes the request_path from the page_not_found view (django.views.defaults), picks it apart, and attempts to match existing FlatPages that have a 'similar' URL.</p>
<p>For example, if the URL that resulted in a 404 was:</p>
/foo/bar/baz/whatever/

<p>This tag would look for FlatPages whose URL starts with the following:</p>
/foo/bar/baz/whatever/
/foo/bar/baz/
/foo/bar/
/foo/

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