Re: Question IMAGE in Django

2009-06-23 Thread Vlad(L)
Guys, can throw off to me to you on an e-mail my project to find an error - why the map is not output? I tried to do everything that to me prompted in it topic, but anything it is impossible to me --~--~-~--~~~---~--~~ You received this message because you are

Re: Question IMAGE in Django

2009-06-22 Thread Vlad(L)
Mike, excuse that I occupy your time. All has made also, but is not present Image. I will write more in detail. When I instal, for example, image it is not displayed on html page, but the place under a figure and together with a red dagger in a corner is displayed. If here it is possible to

Re: Question IMAGE in Django

2009-06-22 Thread Vlad(L)
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 %}

Re: Question IMAGE in Django

2009-06-22 Thread Vlad(L)
Mike, I work on Django 1.0.2 - in this version in settings.py is not mentioned at all about Media context processor and RequestContext. To me they need to be added in addition most??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Question IMAGE in Django

2009-06-22 Thread Vlad(L)
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

Re: Question IMAGE in Django

2009-06-22 Thread Vlad(L)
Unfortunately, it is impossible. Through a browser has looked html code - And how should be correctly registered MEDIA_URL in my case if I work on built in server Django? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Question IMAGE in Django

2009-06-21 Thread Vlad(L)
Nick, thanks! But I unfortunately cannot still make. My problem: that in the Template the picture was displayed For example, I load in Django Admin article, I write title, anonce, body and I load Image... It is necessary For me, that Image it was deduced on a site together with title, anonce,

Question IMAGE in Django

2009-06-20 Thread Vlad(L)
I study Django 1.0.2 on Djangobook Has read not all, but why that I can not find in this book the information anywhere how to be with Image? In the book the example with three models - Authors, Publisher and Books is resulted. And if I want still the Image to books and that they were output in

UnicodeDecodeError

2009-05-31 Thread Vlad(L)
The second day I fight, I can not troubleshoot. I wish to output in django blog page, and to me produces UnicodeDecodeError. I have filled a blog with the Russian text, and was English probably error would not be. Here an error code: Environment: Request Method: GET Request URL:

Re: Installing Django on Windows XP

2009-05-29 Thread Vlad(L)
On 29 май, 20:54, athick2 wrote: > I am trying to install Django on Windows XP. > > I have python in C:\Python25 > > I have extracted django into C:\Program Files\Google\google_appengine > \izonyu\Django-1.0.2-final > > when i try to install django, i run into