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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file django-yaturbo-1.0.1.tar.gz.

File metadata

  • Download URL: django-yaturbo-1.0.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for django-yaturbo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 15d4f4e3e6da35d21c414f674fdfd488d85168c4bb898f27f96088724cb78bf2
MD5 9fbcab0ebcced48ab1e16710ad94e594
BLAKE2b-256 48886c526bb6338cde6aa5787d570c1765ae3a2f66f888ded98c54f96e26aa6f

See more details on using hashes here.

File details

Details for the file django_yaturbo-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_yaturbo-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58c09033c96622b6f3c4fc9cc85d46f0836572f09dca7389cdc43cfba6923fc2
MD5 e28b127ee24ce77fa521bdf60f0ff5eb
BLAKE2b-256 f346aa1c4166e434ad33e6b6275c6c4d43e4e5daae747334cb7d9d111be0200d

See more details on using hashes here.

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