Beispiel #1
0
def feed(request, slug, param=None, feed_dict=None):
    url = slug
    if param is not None:
        url += '/' + param
    return syndication_feed(request, url, feed_dict)
Beispiel #2
0
def feed(request, slug, param = None, feed_dict = None):
    url = slug
    if param is not None:
        url += '/' + param
    return syndication_feed(request, url, feed_dict)
Beispiel #3
0
def redirected_feed(request, *args, **kwargs):
    # if requested by feedburner we will return the original feed url
    if request.META.get('HTTP_USER_AGENT', '').startswith('FeedBurner') or \
        request.path not in settings.FEEDBURNER_URLS:
        return syndication_feed(request, *args, **kwargs)
    return HttpResponsePermanentRedirect(settings.FEEDBURNER_URLS[request.path])