{ "info": { "author": "Robin", "author_email": "robin.winslow@canonical.com", "bugtrack_url": null, "classifiers": [], "description": "Django asset\\_server\\_url\n=========================\n\nProvides ``{{ ASSET_SERVER_URL }}`` (the URL for an asset server) as a\ntemplate context variable. Can be set through settings.py or by passing\nan environment variable to the app.\n\nSetup\n-----\n\n.. code:: python\n\n # settings.py\n TEMPLATE_CONTEXT_PROCESSORS += [\n \"assets_template_context.asset_server_url\"\n ]\n\nDefinition\n----------\n\nSet it in settings, e.g.:\n\n.. code:: python\n\n # settings.py\n ASSET_SERVER_URL = '//assets.example.com/'\n\nOr when starting the site, e.g.:\n\n.. code:: bash\n\n ASSET_SERVER_URL=//assets.example.com/ python manage.py runserver\n\nUsage\n-----\n\nUse in templates:\n\n.. code:: html\n\n # templates/index.html\n\n \n\nOutput:\n\n.. code:: html\n\n