Posted by & filed under python.

Простейший способ по поиску во внутренних страницах в Django-cms:

from cms.models.pagemodel import Page'test')

В Django шаблоне теперь пишем:

{%if found_entries %}
    Query was found in pages:
{% for one in found_entries %} {{ one.get_title }}
{%endfor%} {% else %} Query was not found {% endif %}
Опубликовать в Facebook
Опубликовать в Google Plus

Leave a Reply

You must be logged in to post a comment.