Answer the question
In order to leave comments, you need to log in
How to correctly set the path in css to an image on django?
How to correctly set the path in css to the image on django. In css I have this, but it does not load
the background-image image: url {% static 'img/bg_body_top.png' %}
Specify where it can be read. And then I don’t know something.
I'm just learning, so don't criticize the question too much.
Answer the question
In order to leave comments, you need to log in
css is a static file and therefore does not pass through the parser, which is usually called in the view
return render_to_response('help.xtpl', {},
context_instance = RequestContext(request))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question