mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[1.5.x] Fixed #19897 - Updated static files howto.
Thanks Jan Murre, Reinout van Rees and Wim Feijen, plus Remco Wendt for reviewing. Backport of i6c730da1f from master.
This commit is contained in:
parent
1c42a3ec73
commit
c3779d4214
21 changed files with 342 additions and 483 deletions
|
@ -2388,8 +2388,10 @@ slightly different call::
|
|||
The :mod:`staticfiles<django.contrib.staticfiles>` contrib app also ships
|
||||
with a :ttag:`static template tag<staticfiles-static>` which uses
|
||||
``staticfiles'`` :setting:`STATICFILES_STORAGE` to build the URL of the
|
||||
given path. Use that instead if you have an advanced use case such as
|
||||
:ref:`using a cloud service to serve static files<staticfiles-from-cdn>`::
|
||||
given path (rather than simply using :func:`urlparse.urljoin` with the
|
||||
:setting:`STATIC_URL` setting and the given path). Use that instead if you
|
||||
have an advanced use case such as :ref:`using a cloud service to serve
|
||||
static files<staticfiles-from-cdn>`::
|
||||
|
||||
{% load static from staticfiles %}
|
||||
<img src="{% static "images/hi.jpg" %}" alt="Hi!" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue