Tuesday, January 8, 2013

show an image in django

Hi all,
I want to show an image in project in which the folder DIR looks like this:
images/a.jpg
templates/introduction.html

In introduction.html I use
<img src="../images/a.jpg" alt = "example" width = "390" height = "225">

It can show image correctly when I open the "introduction.html" directly using firefox, but it shows ""GET /images/gauge_example.jpg HTTP/1.1" 404 " when I open it in http://127.0.0.1:8000/introduction/, and there is no image in the webpage.

Could anyone give me some suggestions?

jianhui





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

No comments:

Post a Comment