[Answer]-How to pass Django textfield to html attribute and read with javascript

1👍

You just need to wrap it in quotes. You should do that anyway with HTML attributes, for safety.

<img src="{{ picture.path }}" alt="{{ picture.caption }}">

Leave a comment