@register.tag('static')
def do_static(parser, token):
 return StaticNode.handle_token(parser, token)

@ register . tag ( 'static' ) def do_static ( parser , token ) : return StaticNode . handle_token ( parser , token )
a template tag that returns the url to a file using staticfiles storage backend usage:: {% static path [as varname] %} examples:: {% static "myapp/css/base .