Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore TupleLoad NameLoad SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad Str Assign NameStore BoolOpOr Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Str For NameStore Call NameLoad NameLoad body Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr NameLoad Return TupleLoad NameLoad Dict Str Str NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad
N/A N/A 
Tags which can retrieve and parse RSS and Atom feeds, and return the
results for use in templates.

Based, in part, on the original idea by user baumer1122 and posted to
djangosnippets at http://www.djangosnippets.org/snippets/311/

 N/A datetime N/A feedparser django.template TemplateSyntaxError native_tags.decorators function include_feed N/A N/A feed_url N/A args N/A N/A 
    Parse an RSS or Atom feed and render a given number of its items
    into HTML.
    
    It is **highly** recommended that you use `Django's template
    fragment caching`_ to cache the output of this tag for a
    reasonable amount of time (e.g., one hour); polling a feed too
    often is impolite, wastes bandwidth and may lead to the feed
    provider banning your IP address.
    
    .. _Django's template fragment caching: http://www.djangoproject.com/documentation/cache/#template-fragment-caching
    
    Arguments should be:
    
    1. The URL of the feed to parse.
    
    2. The name of a template to use for rendering the results into HTML.

    3. The number of items to render (if not supplied, renders all
       items in the feed).
           
    The template used to render the results will receive two variables:
    
    ``items``
        A list of dictionaries representing feed items, each with
        'title', 'summary', 'link' and 'date' members.
    
    ``feed``
        The feed itself, for pulling out arbitrary attributes.
    
    Requires the Universal Feed Parser, which can be obtained at
    http://feedparser.org/. See `its documentation`_ for details of the
    parsed feed object.
    
    .. _its documentation: http://feedparser.org/docs/
    
    Syntax::
    
        {% include_feed [feed_url] [num_items] [template_name] %}
    
    Example::
    
        {% include_feed "http://www2.ljworld.com/rss/headlines/" 10 feed_includes/ljworld_headlines.html %}
    
     N/A feed N/A N/A feedparser parse feed_url N/A items N/A N/A N/A N/A len args 2 N/A N/A N/A num_items template_name args N/A N/A N/A N/A len args 1 N/A N/A N/A num_items template_name N/A None N/A args N/A 0 N/A N/A N/A TemplateSyntaxError 'include_feed' tag takes either two or three arguments N/A num_items N/A N/A int num_items N/A len N/A feed N/A entries N/A i N/A range num_items N/A N/A pub_date N/A N/A N/A feed N/A entries N/A i updated_parsed N/A published N/A N/A datetime date N/A pub_date N/A 0 N/A pub_date N/A 1 N/A pub_date N/A 2 N/A N/A N/A items append N/A title summary link date N/A N/A N/A feed N/A entries N/A i title N/A N/A N/A feed N/A entries N/A i summary N/A N/A N/A feed N/A entries N/A i link published N/A N/A template_name N/A items feed items feed N/A N/A include_feed N/A function include_feed inclusion True parse_feed N/A N/A feed_url N/A N/A N/A 
    Parses a given feed and returns the result in a given context
    variable.
    
    It is **highly** recommended that you use `Django's template
    fragment caching`_ to cache the output of this tag for a
    reasonable amount of time (e.g., one hour); polling a feed too
    often is impolite, wastes bandwidth and may lead to the feed
    provider banning your IP address.
    
    .. _Django's template fragment caching: http://www.djangoproject.com/documentation/cache/#template-fragment-caching
    
    Arguments should be:
    
    1. The URL of the feed to parse.
    
    Requires the Universal Feed Parser, which can be obtained at
    http://feedparser.org/. See `its documentation`_ for details of the
    parsed feed object.
    
    .. _its documentation: http://feedparser.org/docs/
    
    Syntax::
    
        {% parse_feed [feed_url] as [varname] %}
    
    Example::
    
        {% parse_feed "http://www2.ljworld.com/rss/headlines/" as ljworld_feed %}
    
     N/A N/A N/A feedparser parse feed_url N/A N/A parse_feed N/A function parse_feed