On Monday 22 June 2009 10:27:22 am Vlad(L) wrote:
> 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, <img src =
> "{{MEDIA_URL}} {{art.image}}" width=200;/> 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 load a page-
> screenshot - I would send.

First verify that the generated url is correct, that django is producing the 
right url with the context.  Then it would now be a problem of the image not 
being were you expect it or a misconfiguration of your urls.py.  I would 
suspect the latter first, so you need to check that.  For this, depending on 
your setup, you'll want to look at setting up django serve static files[1]. 
If you're using apache, you should follow the mod_python instructions [2]. 
For a seperate media server (url points to another domain such as 
media.yourdomain.com), then you should have your MEDIA_ROOT pointed to that 
domains document root.  

If this doesn't help and you are serving your media correctly, then you'll 
want to check your paths and make sure the actual file exists on the file 
system, where it should be.  

If all this is correct and you can view the image by itself in your browser, 
then follow the path of the earlier suggestions.

Mike

[1] 
http://docs.djangoproject.com/en/dev/howto/static-files/#howto-static-files
[2] http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1
-- 
Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop in a
plate of SAUCE MORNAY?

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to