On Saturday, March 19, 2011 9:44:41 AM UTC, Vladimir wrote:
>
> It does not work. If I call index.html which contains 
> #title h1    { background-image: url(galion.gif); background-position: 
> left top; background-repeat: no-repeat; } 
> directly in web browser then image is displayed. 
> If I call it: 
> http://localhost:8000/index/ 
> then image is not displayed. 

 

> Note, for simplicity I placed here the 
> image into directory containing index.html 
>

Why would you do that? "For simplicity" you ignore all the documentation as 
well as the advice you have been given? What a strange thing to do.

`index.html` is a template. It is in a template directory. The image is not 
a template. It belongs in the media directory, ie the one you refer to as 
MEDIA_ROOT in your settings.py. And you need to specify a URL for it in your 
template - ie based on the MEDIA_ROOT.
--
DR.

 

-- 
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