diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2012-07-07 15:49:00 +0200 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2012-07-07 15:49:00 +0200 |
| commit | a4bb7dd552cf9e45cdd0b38938b18c576419fd8d (patch) | |
| tree | 4efc2b8368cb9b8eb446924f482072ead44c5c9b /docs/ref/contrib | |
| parent | 52a9e15794ac050afb17837a34407722e7249854 (diff) | |
| parent | 0a68a2994be17ed2669accead331881cb0be41dd (diff) | |
Merge branch 'master' of github.com:django/django
Diffstat (limited to 'docs/ref/contrib')
| -rw-r--r-- | docs/ref/contrib/staticfiles.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index 126bcdd4e6..f5557dff91 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -387,6 +387,17 @@ The previous example is equal to calling the ``url`` method of an instance of useful when using a non-local storage backend to deploy files as documented in :ref:`staticfiles-from-cdn`. +.. versionadded:: 1.5 + +If you'd like to retrieve a static URL without displaying it, you can use a +slightly different call:: + +.. code-block:: html+django + + {% load static from staticfiles %} + {% static "images/hi.jpg" as myphoto %} + <img src="{{ myphoto }}" alt="Hi!" /> + Other Helpers ============= |
