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.toolbox 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.1.0.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for django_yaturbo-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a050d574a91a5e23dfe636cd8215dc82bb42b743146dee1041750ac383db0f2 |
|
MD5 | 57f72e4b87dec083c5119893a4bf8e17 |
|
BLAKE2b-256 | dc05f132aaa2942e88393bcda3aef76138e3b6fea2912639c8faea0421de31db |