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-1.0.1.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for django_yaturbo-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c09033c96622b6f3c4fc9cc85d46f0836572f09dca7389cdc43cfba6923fc2 |
|
MD5 | e28b127ee24ce77fa521bdf60f0ff5eb |
|
BLAKE2b-256 | f346aa1c4166e434ad33e6b6275c6c4d43e4e5daae747334cb7d9d111be0200d |