DEV Community

Discussion on: Using Context processor in Django to create dynamic footer

Collapse
 
minaee profile image
minaee

I did exactly the same procidure, but I want to pass 4 images to the navbar of my website. I am accessing the image as following:
<img src="{{ labels.label_services.url }}">

but it doesnt work! any ideas?

Collapse
 
harveyhalwin profile image
Heinek Halwin

Did you setup the static and media urls in settings ? It should work if you had set those up.

Collapse
 
minaee profile image
minaee

the problem was with the looping through the dict that I sent in the template. your explanations were sufficient. thanks