I was working flask project using bootstrap ….i got an error while working i have all the files i my static folder , even the images …..so to access the images and to apply image to the background i used the method of url_for() ——
style="background-image: url('{{ url_for('static', filename='assets/img/home_bg.jpg') }}')"
But it throws error on the static word saying —–
) expectedcss(css-rparentexpected)
i cross checked it many times from different sources , i don’t think there is anything wrong …plz help
Image of the code and error
New contributor
vinayak ghule is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.