Static CSS file for custom widget

20 views
Skip to first unread message

Antonis Christofides

unread,
Dec 29, 2016, 7:21:35 AM12/29/16
to django...@googlegroups.com
Hello everyone,

can a custom widget specify a static CSS file? I think the <style> element is
only allowed in the HTML header. So how can I write a custom widget that will
make use of an additional static css file?

Regards,

Antonis

--
Antonis Christofides
http://djangodeployment.com

ludovic coues

unread,
Dec 30, 2016, 9:41:04 AM12/30/16
to django...@googlegroups.com
Have you looked at the media class ?

https://docs.djangoproject.com/en/1.10/topics/forms/media/
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/9dbbda3e-9578-4656-4fcb-6099248f5665%40djangodeployment.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42
Reply all
Reply to author
Forward
0 new messages