http://www.djangoproject.com/documentation/static_files/
You need to add information about your media directory to the url.py

On Oct 5, 5:59 pm, staff-gmail <[EMAIL PROTECTED]> wrote:
> I have read the docs on static files but cannot figure out how to
> specify an image when using the built-in web server.
>
> If I have my media location:
> /myproject/myapp/media/picture1.png
>
> if I have a template file
> /myproject/myapp/templates/mypage.html
>
> if I try :
> <img src='/media/picture1.png'></img>
>
> I get nothing.  In fact I've tried numerous path variations - using
> media_root in settings.py doesn't seem to work.  This is pretty basic
> and shouldn't be that hard - what am I missing ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to