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
<old_road_f...@verizon.net>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 django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to