[Answer]-Handling Dynamic Image Directory in Django {% include "subtemplate.html" %}

1👍

You can just use

<img src="/mysite{{ im.url }}" /> 

The slash / will force the path to always start from the root directory.

👤Selcuk

Leave a comment