Reusable Django app to enable Yandex Turbo Pages for your site
Project description
https://github.com/idlesign/django-yaturbo
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:
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/
"""
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
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-0.3.0.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for django_yaturbo-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04d1f468a7b741ed798c667db26c341f966b1747ba03181e7c73fd937dfe7ff |
|
MD5 | fd33690c6384844c0777de5c17af3cd1 |
|
BLAKE2b-256 | c5dff0008ca489c4382d666aac0d93c53e0b4cc3c15cfb7d91ee0a223ff5c0f9 |