@register.tag
def get_rotating_photo(parser, token):
    try:
        # Split the contents of the tag, i.e. tag name + argument.
        tag_name, gallery, photosize, css_class = token.split_contents()
    except ValueError:
        msg = '%r tag requires 3 arguments' % token.contents[0]
        raise template.TemplateSyntaxError(msg)
    return PhotoGalleryNode(gallery, photosize[1:-1], css_class[1:-1])
Parse a string containing an address or a range of addresses
dataset/ETHPy150Open jdriscoll/django-photologue/photologue/templatetags/photologue_tags.py/get_rotating_photo--crossover with--dataset/ETHPy150Open mnaberez/py65/py65/utils/addressing.py/AddressParser.range