diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-06 10:32:03 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-06 10:32:03 +0200 |
| commit | 29a80354ab5e5b85fa37863f70b1cf95646dc699 (patch) | |
| tree | 4dc78d685ef01a83f56638fcdb10f9b2ccce4bae /docs/ref/contrib | |
| parent | 17824e2b74ca02b9914e853c818fa512a0f9ef34 (diff) | |
Added alt attribute to img tags in docs.
This is a good practice for accessibility.
Thanks Jessica McKellar for the report.
Diffstat (limited to 'docs/ref/contrib')
| -rw-r--r-- | docs/ref/contrib/staticfiles.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index 2bdf825316..126bcdd4e6 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -380,10 +380,10 @@ full URL for the given relative path, e.g.: .. code-block:: html+django {% load static from staticfiles %} - <img src="{% static "css/base.css" %}" /> + <img src="{% static "images/hi.jpg" %}" alt="Hi!" /> The previous example is equal to calling the ``url`` method of an instance of -:setting:`STATICFILES_STORAGE` with ``"css/base.css"``. This is especially +:setting:`STATICFILES_STORAGE` with ``"images/hi.jpg"``. This is especially useful when using a non-local storage backend to deploy files as documented in :ref:`staticfiles-from-cdn`. |
