def art(request):
art = Article.object.all()
retrun <img src="./%s" /> % (art)
 art.allow_tags = True

try this .Add this in your model or if in admin then pass object .then use
list_display to display the image.see docs for more help:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/

On Mon, Jun 22, 2009 at 4:11 PM, Vlad(L) <referma...@yandex.ru> wrote:

>
> It so needs to be made?
>
>
> def art(request):
>        art = Article.objects.all()
>        return render_to_response('art.html', {'art': art})
>
> art.allow_tags = True
>
> I so have written, but all the same it is impossible
> http://127.0.0.1:8000/article/media/1.jpg
>
> It can is necessary to make, that the path was
> http://127.0.0.1:8000/media/1.jpg
> ?
>
>
> >
>

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

Reply via email to