The same way you'd include CSS in any general HTML file, there's
nothing magic happening there with Django.

We use both:

<link rel="stylesheet" type="text/css" href="{{ media_url
}}/css/style_general.css" />

in the header, and:

<style type="text/css">
<!-- @import url({{media_url}}/css/style_s1.css); -->
</style>

- whatever makes the most sense for you, have at. We take advantage of
{{ media_url }} in ours to point to our static media server, but you
can also hardcode in whatever makes sense for you.

-joe

On 5/6/07, umesu <[EMAIL PROTECTED]> wrote:
> How to include CSS file with template

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

  • CSS umesu
    • Re: CSS Joseph Heck

Reply via email to