I need to include the contents of a css file in my template [1]

The css content needs to exist within <style type="text/css"> and </style> tags so that the pdf output software I'm using can see the styles.

I can get the correct effect by copying and pasting the contents of the css file into the template but that way madness lies!

{% include %} exists but seems designed for other templates. And I can't find it in the docs.

Is there a way to include the content of a css file?

Thanks

Mike


[1] without using the normal <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}styles.css" />

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/211bd384-b32f-f6ea-9ee8-3c6766ca8d25%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to