def feed(request, url, feed_dict=None):
    if not feed_dict:
        raise Http404(_("No feeds are registered."))

    slug = url.partition('/')[0]
    try:
        f = feed_dict[slug]
    except KeyError:
        raise Http404(_("Slug %r isn't registered.") % slug)

    instance = f()
    instance.feed_url = getattr(f, 'feed_url', None) or request.path
    instance.title_template = f.title_template or ('feeds/%s_title.html' % slug)
    instance.description_template = f.description_template or ('feeds/%s_description.html' % slug)
    return instance(request)
Parse a smart search query for ASNs
dataset/ETHPy150Open django/django/django/contrib/gis/views.py/feed--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/backend.py/Nipap._parse_asn_query