Skip to main content

Reusable Django app to enable Yandex Turbo Pages for your site

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-yaturbo-1.0.1.tar.gz (12.5 kB view hashes)

Uploaded Source

Built Distribution

django_yaturbo-1.0.1-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page