Re: CSS and PNG files in templates

2005-08-30 Thread Sam Newman
On 8/23/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/23/05, Sam Newman <[EMAIL PROTECTED]> wrote: > > Or more simply put, the Django web server doesn't serve your media > > (e.g. images, PNG, CSS) and there isn't a plan to (the related ticket > > is marked as WONTFIX). Which majorly bl

Re: CSS and PNG files in templates

2005-08-23 Thread [EMAIL PROTECTED]
From what I understand the dev server is base on BaseHTTPServer, so it should be easy to write that for some of the resquests asking for /static (or anything the developper passes as a parameter) be handled directly thru it and be served by BaseHTTPServer on the filesystem(another config var?).

Re: CSS and PNG files in templates

2005-08-23 Thread Adrian Holovaty
On 8/23/05, Sam Newman <[EMAIL PROTECTED]> wrote: > Or more simply put, the Django web server doesn't serve your media > (e.g. images, PNG, CSS) and there isn't a plan to (the related ticket > is marked as WONTFIX). Which majorly blows IMHO. My two cents: I can see the value in having the develo

Re: CSS and PNG files in templates

2005-08-23 Thread Andy Shaw
Jacob Kaplan-Moss wrote: The point is that serving media from Django is a Bad Idea(tm), and one of the philosophies behind Django is that we want to make it easier to do the right thing than to do the wrong thing. I'm not going to go into why serving media from an application server is bad

Re: CSS and PNG files in templates

2005-08-23 Thread Andy Shaw
Bryan L. Fordham wrote: Sure it's useful. It's not unusual at all to have static content served from a server that's designed for that (ie apache) even when you're running a very expensive app server such as weblogic. Okay, I was exaggerating somewhat. But as I see it, there are three basic

Re: CSS and PNG files in templates

2005-08-23 Thread Sam Newman
On 8/23/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > The point is that serving media from Django is a Bad Idea(tm), and > one of the philosophies behind Django is that we want to make it > easier to do the right thing than to do the wrong thing. Without CSS or JavaScript, people attemp

Re: CSS and PNG files in templates

2005-08-23 Thread Bryan L. Fordham
On Tue, Aug 23, 2005 at 12:12:31PM +0100, Andy Shaw wrote: > It does seem somewhat contradictory to refuse to let the built-in server > serve static media in general whilst hacking it so that it does output > the admin media. Presumably this is so that the admin CSS/Javascript is > available,

Re: CSS and PNG files in templates

2005-08-23 Thread Jacob Kaplan-Moss
On Aug 23, 2005, at 6:12 AM, Andy Shaw wrote: Or more simply put, the Django web server doesn't serve your media (e.g. images, PNG, CSS) and there isn't a plan to (the related ticket is marked as WONTFIX). Which majorly blows IMHO. It does seem somewhat contradictory to refuse to let the bu

Re: CSS and PNG files in templates

2005-08-23 Thread Andy Shaw
Sam Newman wrote: Or more simply put, the Django web server doesn't serve your media (e.g. images, PNG, CSS) and there isn't a plan to (the related ticket is marked as WONTFIX). Which majorly blows IMHO. Yeah, that's slightly more to-the-point! It does seem somewhat contradictory to refuse t

Re: CSS and PNG files in templates

2005-08-23 Thread Sam Newman
On 8/22/05, Andy Shaw <[EMAIL PROTECTED]> wrote: > > Krzysztof Drozd wrote: > > hi > > > > i hawe make a template 'base.html' and i use it in my apps. but > > 'base.html' use > > CSS and PNG files. > > > > my app template use 'base.html' but can't find my CSS and PNG files. > > what can i do? wha

Re: CSS and PNG files in templates

2005-08-22 Thread Andy Shaw
Krzysztof Drozd wrote: hi i hawe make a template 'base.html' and i use it in my apps. but 'base.html' use CSS and PNG files. my app template use 'base.html' but can't find my CSS and PNG files. what can i do? what in settings/template shuld i wrote? a example... kd. You either need to s

Re: CSS and PNG files in templates

2005-08-22 Thread Krzysztof Drozd
sorry for my english :P