Re: Using HTML/CSS as templates

2007-03-02 Thread [EMAIL PROTECTED]
On Feb 28, 5:56 am, "MattW" <[EMAIL PROTECTED]> wrote: > > The change from dev to production seems like it might be a pain. > I agree somewhat. Speaking as a person transitioning from Tomcat to Django. Dealing with static files is one of the things about Django that does take some getting used t

Re: Using HTML/CSS as templates

2007-02-28 Thread MattW
Thanks for all the help - have got it working. I have to say that (IMHO) it doesn't seem the nicest way to do things...I'm sure there are reasons, I'm just saying it doesn't feel so nice. The change from dev to production seems like it might be a pain. As a note on docs - I was looking at the D

Re: Using HTML/CSS as templates

2007-02-27 Thread Mike
It's probably a path-related issue. You might start here as a reference: http://www.djangoproject.com/documentation/static_files/ Bit o' learning curve serving CSS when starting out, in my experience, because of the way Django encourages/prods/provokes us to serve static media separately. --~

Re: Using HTML/CSS as templates

2007-02-27 Thread Benedict Verheyen
MattW schreef: > Dear Group, > > I've got an HTML page with associated CSS that I want to use as my > template. Just to test it, I call: > > return render_to_response('about.html') > > and I get the page, but with no CSS info. I've checked the page > source, and it has the name of the styleshee

Re: Using HTML/CSS as templates

2007-02-27 Thread Mike H
I'm taking a guess that your css is meant to be served as a static file through your webserver and not a django view? If I'm right about that, and you're using apache+mod_python, check out the "Serving Media" section at http://www.djangoproject.com/documentation/modpython/ You need to tell your

Re: Using HTML/CSS as templates

2007-02-27 Thread Honza Král
On 2/27/07, MattW <[EMAIL PROTECTED]> wrote: > > Dear Group, > > I've got an HTML page with associated CSS that I want to use as my > template. Just to test it, I call: > > return render_to_response('about.html') > > and I get the page, but with no CSS info. I've checked the page > source, and it h

Using HTML/CSS as templates

2007-02-27 Thread MattW
Dear Group, I've got an HTML page with associated CSS that I want to use as my template. Just to test it, I call: return render_to_response('about.html') and I get the page, but with no CSS info. I've checked the page source, and it has the name of the stylesheet in there, and the page renders