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 details)

Uploaded Source

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page