Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wagtail-gardentronic / tests / context_processors.py
Size: Mime:

def do_not_use_static_url(request):
    def exception():
        raise Exception("Do not use STATIC_URL in templates. Use the {% static %} templatetag instead.")

    return {
        'STATIC_URL': lambda: exception(),
    }