Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Populates a template variable with the static prefix,
``settings.STATIC_URL``.

Usage::

    {% get_static_prefix [as varname] %}

Examples::

    {% get_static_prefix %}(more...)

        @register.tag
def get_static_prefix(parser, token):
    """
    Populates a template variable with the static prefix,
    ``settings.STATIC_URL``.

    Usage::

        {% get_static_prefix [as varname] %}

    Examples::

        {% get_static_prefix %}
        {% get_static_prefix as static_prefix %}

    """
    return PrefixNode.handle_token(parser, token, "STATIC_URL")
        


src/a/m/amcat-HEAD/settings/base.py   amcat(Download)
 
# Django settings for amcatnavigator project.
from django.templatetags.static import get_static_prefix
import os
from os import path