Re: How to provide background image via url() in django

2020-07-16 Thread sunday honesty
Thanks all... @Sujara own worked for me On Fri, Jul 17, 2020, 6:07 AM Sujata Aghor wrote: > I set background image like below in the style tag of the html page. It > works ! > > >body{ > background: url({% static 'users/img/bg/name_of _image.png'%}) > no-repeat center center fixed; >

Re: How to provide background image via url() in django

2020-07-16 Thread Sujata Aghor
I set background image like below in the style tag of the html page. It works ! body{ background: url({% static 'users/img/bg/name_of _image.png'%}) no-repeat center center fixed; -webkit-background-size:cover; -moz--background-size:cover; -o--background-size:cover; backgro

Re: How to provide background image via url() in django

2020-07-16 Thread Exactly musty
i encounter alot shit when adding static to a url background images,django templates can be shitty sometimes,because sometimes it wont pick up due to some spacing ,its very annoying,here is what i do either i write the same code by myself again beneath it but mostly it always worked by copying

Re: How to provide background image via url() in django

2020-07-16 Thread Desh Deepak
Try it url(" static 'some_path/image.png' ") On Fri, 17 Jul 2020, 4:38 am sunday honesty, wrote: > Hi django users, pls help me with this: > > In case we supply background image via the url() function as > background-image: url("some_path/image.png") > > How do we do this in django static files

How to provide background image via url() in django

2020-07-16 Thread sunday honesty
Hi django users, pls help me with this: In case we supply background image via the url() function as background-image: url("some_path/image.png") How do we do this in django static files? I tried url("{% static 'some_path/image.png' %}") but it didn't work, how do I do this pls? -- You rece