Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Provides the URL for an asset server, as a template context variable.

Project Description

Provides {{ ASSET_SERVER_URL }} (the URL for an asset server) as a template context variable. Can be set through or by passing an environment variable to the app.




Set it in settings, e.g.:


Or when starting the site, e.g.:

ASSET_SERVER_URL=// python runserver


Use in templates:

# templates/index.html

<img src="{{ ASSET_SERVER_URL }}a34bc3-fish.jpg" />


<img src="//"

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.4 kB) Copy SHA256 Hash SHA256
Source None Sep 16, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers