Skip to content

Commit

Permalink
example to use the more practical URL start thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Bengtsson committed Mar 11, 2011
1 parent a8e2fa1 commit a62b105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -118,15 +118,15 @@ Another option is to let django_static take care of setting your
But if you're feeling lazy and what django_static to automatically
take care of it set `DJANGO_STATIC_MEDIA_URL`. In settings.py:

DJANGO_STATIC_MEDIA_URL = "http://static.example.com"
DJANGO_STATIC_MEDIA_URL = "//static.example.com"

In your template:

<img src="{% staticfile "/foo.png" %}"/>

And you get this result:

<img src="http://static.example.com/foo.1247785534.png"/>
<img src="//static.example.com/foo.1247785534.png"/>

Right out of the box, `DJANGO_STATIC_MEDIA_URL` will not be active
if `DJANGO_STATIC = False`. If you want it to be, set
Expand Down

0 comments on commit a62b105

Please sign in to comment.