You can use MEDIA_URL conf to get the root path to your media files.

<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/site.css" />


On Wed, Jan 19, 2011 at 5:55 PM, octopusgrabbus
<[email protected]>wrote:

> I am trying to load a css file in my base.html template
>
> <html>
>    <!-- Test Comment -->
>    <head>
>        <title>{% block title %}Test{% endblock %} </title>
>        <link rel="stylesheet" type="text/css" href="css/amr.css" />
>   </head>
>
> What kind of path is supposed to go in the href? Is it relative to the
> document root?
>
> Does anyone have an example of loading a css file including the Apache
> configuration?
>
> Thanks.
> cmn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Eduardo Cereto Carvalho

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to