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 details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d4f4e3e6da35d21c414f674fdfd488d85168c4bb898f27f96088724cb78bf2 |
|
MD5 | 9fbcab0ebcced48ab1e16710ad94e594 |
|
BLAKE2b-256 | 48886c526bb6338cde6aa5787d570c1765ae3a2f66f888ded98c54f96e26aa6f |
File details
Details for the file django_yaturbo-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_yaturbo-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c09033c96622b6f3c4fc9cc85d46f0836572f09dca7389cdc43cfba6923fc2 |
|
MD5 | e28b127ee24ce77fa521bdf60f0ff5eb |
|
BLAKE2b-256 | f346aa1c4166e434ad33e6b6275c6c4d43e4e5daae747334cb7d9d111be0200d |