How to display images from model in templates?
I will display images from photos directory (upload_to=\'photos\') in my template index.html. How to do?
For e
Everything you need is well documented here and here. Youll need to pass your img into the template and use its url() method.
In your template you can do something like this:
{% for n in img %} <img src="{{ n.nazwa.url }}" /> {% endfor %}
Hope this helps.