By broken I mean i get the little square 'boren image' symbol (I am not sure the official name, sorry I can't be more specific). What do you mean by 'MEDIA_URL isn't being included in the request context.' do I deed to do something in url.py and/or views.py for my media files?
On Thu, Aug 19, 2010 at 11:07 AM, Steve Holden <[email protected]> wrote: > On 8/19/2010 11:00 AM, Bradley Hintze wrote: >> Hi all, >> >> I am trying to display an image but cant get it up. I tried google >> searches and tried what was suggested with no luck. i am a newbie >> running the local server. Here is my code: >> >> #settings.py >> ... >> MEDIA_ROOT = '/Users/bradleyhintze/djcode/my_try/media/' >> MEDIA_URL = 'media/' >> ... >> >> base.html >> ... >> <img src = {{MEDIA_URL}}'duke-logo.jpg'> >> ... >> >> All the base.html code shows as expected but the image is broken. Any ideas? >> > Define "broken" - specifically, what shows up in the generated HTML > there? It's possible that MEDIA_URL isn't being included in the request > context. > > regards > Steve > -- > DjangoCon US 2010 September 7-9 http://djangocon.us/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > 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. > > -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

