django-yaturbo

Reusable Django app to enable Yandex Turbo Pages for your site


Keywords
django, python, python2, python3, rss, syndication, yandex, yandex-turbo, yandex-turbo-pages
License
BSD-1-Clause
Install
pip install django-yaturbo==1.0.1

Documentation

django-yaturbo

https://github.com/idlesign/django-yaturbo

release lic coverage

Description

Reusable Django app to enable Yandex Turbo Pages for your site

This app allows you to define Yandex Turbo pages feeds in term similar to those of Django Syndication Feed Framework contrib:

  1. Inherit your feed class from YandexTurboFeed:
# feeds.py
from yaturbo import YandexTurboFeed

class TurboFeed(YandexTurboFeed):
    """
    More information on Django Syndication Feed Framework configuration:
    https://docs.djangoproject.com/en/2.0/ref/contrib/syndication/
    """
  1. Pass an instantiated (and optionally configured) feed object to urlpatterns:
# urls.py
from .feeds import TurboFeed

urlpatterns = [
    ...
    path('feeds/turbo/', TurboFeed()),
    ...
]

Read the docs for further information.

Documentation

http://django-yaturbo.readthedocs.org/