Skip to main content

Reusable Django app to enable Yandex Turbo Pages for your site

Project description

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

LBC Python 2

release lic ci 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.

Project details


Download files

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

Files for django-yaturbo, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_yaturbo-1.0.0-py2.py3-none-any.whl (8.1 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-yaturbo-1.0.0.tar.gz (12.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page