Re: Django wont display images on my CSS file

2009-03-28 Thread Nathan Reynolds
On Sat, Mar 28, 2009 at 7:17 AM, Ayaz Ahmed Khan wrote: > Furthermore, it stipulates that if the given URL path is > relative, the absolute path is derived at by combining that relative > path with a base URL which, for CSS style sheets, is the base URL for > the style sheet.

Re: Django wont display images on my CSS file

2009-03-28 Thread Ayaz Ahmed Khan
On 28-Mar-09, at 3:14 AM, Dougal Matthews wrote: > > 2009/3/27 Brian Neal : >> >> I seem to recall that when you put references to files in your >> CSS, they are relative to that CSS file, not to the document >> root. So if that graphic file is in the same directory as your >>

Re: Django wont display images on my CSS file

2009-03-27 Thread Dougal Matthews
Isn't it just because you don't have quotes around the image address? background: url('/site_media/header_background.gif') no-repeat top left; Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/3/27 Brian Neal : > > On Mar 27, 7:33 am, Gath

Re: Django wont display images on my CSS file

2009-03-27 Thread Brian Neal
On Mar 27, 7:33 am, Gath wrote: > Guys, > > Am having a problem in displaying images in my CSS file. > > I have a css file with the following class > > .header > { >  margin-left: auto; >  bla bla >  bla bla >  ... > background: url(/site_media/header_background.gif)

Re: Django wont display images on my CSS file

2009-03-27 Thread Sean Brant
In most of my projects I have a img, css, js folder. In my css file I reference images like this url(../img/path/to/img.jpg) in my css files. The ../ basically says start the path back one directory. Not sure if this is what's causing your problem. On Mar 27, 8:10 am, Martin Ostrovsky

Re: Django wont display images on my CSS file

2009-03-27 Thread Martin Ostrovsky
I spoke too soon. Re-reading your comment, it does seem to be entirely a CSS/HTML issue - not Django related. Since the inlined style works, Django is finding the image. Sorry about that misleading response. On Mar 27, 9:07 am, Martin Ostrovsky wrote: > Without

Re: Django wont display images on my CSS file

2009-03-27 Thread Martin Ostrovsky
Without seeing your settings.py file and urls.py, I can only guess, but you probably don't have serving static media setup correctly. If you're running this on the development server, you'll probably see a 404 next to /site_media/header_background.gif in the terminal window. This means Django

Django wont display images on my CSS file

2009-03-27 Thread Gath
Guys, Am having a problem in displaying images in my CSS file. I have a css file with the following class .header { margin-left: auto; bla bla bla bla ... background: url(/site_media/header_background.gif) no-repeat top left; } When i execute the template with this css, no image is