Ok!
views.py
from booksite.books.models import Article
from django.template import RequestContext
def art(request):
art = Article.objects.all()
return render_to_response('art.html', {'art': art},
context_instance=RequestContext(request))
art.html
{% for art in art %}
<h1>{{ art.title }}</h1>
<h3>{{art.anonce }}</h3>
<img src="{{art.image}}"/>
{% endfor %}
I have made by your example, but all the same image is not displayed
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---