Skip to main content

Django rss link view mixin

Project description

Installation

$ [sudo] pip install django-rss-link-view
views.py
from django_rss_link_view.views import RssLinkMixin

class MyView(RssLinkMixin,...):
    def get_atom_title(self):
        return 'atom title'

    def get_atom_url(self):
        return 'path/to/atom.xml'

    def get_rss_title(self):
        return 'rss title'

    def get_rss_url(self):
        return 'path/to/rss.xml'
class MyView(RssLinkMixin,...):
    atom_title = 'atom title'
    atom_url = 'path/to/atom.xml'
    rss_title = 'rss title'
    rss_url = 'path/to/rss.xml'

readme42.com

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-rss-link-view-2020.7.1.tar.gz (1.8 kB view hashes)

Uploaded Source

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