9th response to this thread because Google Groups appears to be off
line, but here's what I've done to get amr.css to load:
1) Here is the base template portion that loads the css file:
<html>
<!-- Test Comment -->
<head>
<title>{% block title %}Town of Arlington Water Department AMR
System{% endblock %} </title>
<link rel="stylesheet" type="text/css" href="http://localhost:
8003/css/amr.css" />
</head>
2) Here is the apache config file. This is choice appears to be in
line with the Django documentation, because Django recommends not
serving static content from the same document root.
Listen 8003
<VirtualHost _default_:8003>
DocumentRoot "/var/www/amr/media"
<Directory "/var/www/amr/media">
Options +Includes
</Directory>
Basically media is a symlink
media -> /home/amr/django/amr/media
I get a 200 from loading the css file
body{ background-color: blue;}
p { color: blue; }
h3{ color: white; }
I picked blue just so I'd see a drastic change. It's not my final
choice.
My question is why don't I see a change?
Thanks.
cmn
On Dec 1, 10:12 am, Tom Evans <tevans...@googlemail.com> wrote:
> On Wed, Dec 1, 2010 at 3:02 PM, Tom Evans <tevans...@googlemail.com> wrote:
> > Are you expecting django to serve the file through apache or apache to
> > directly serve the file?
>
> > How have you configured apache?
>
> > What is output in apache's access log when you try to access the file?
>
> > You really need to provide more information. "It doesn't work" doesn't
> > really help debug.
>
> > Cheers
>
> > Tom
>
> I don't mean to repeat myself, but you still haven't given any of this
> information, so there are diminishing returns to helping you further.
> How you have configured apache to serve django affects this issue, and
> without the information, I'm just speculating.
>
> Tom
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment