[Fixed]-NoReverseMatch – How to add url parameter to render?

1👍

✅

You should pass user_url into the context parameter of render(), so that it can be used in the template.

Then, inside the template, you can add user_url as a parameter to the url template tag, like this:

{% url 'gallery-add' user_url=user_url %}

Leave a comment