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 django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to