Django Model Image as background image in css

48 views
Skip to first unread message

Paul Magadi

unread,
May 11, 2024, 1:32:56 PM5/11/24
to Django users
How do we use a model image as a background image for static css

Ryan Nowakowski

unread,
May 12, 2024, 8:57:59 AM5/12/24
to django...@googlegroups.com
Typically css is served statically but if you're dynamically changing the background image in the css file, you could make your css file a template. Alternatively could you use a style attribute in your html template to achieve the same thing?
Reply all
Reply to author
Forward
0 new messages