[Django]-Django – Urls are appending to one another

3👍

It should be – <a href="/upload/">Upload post</a>

If you enter ‘/’ (/upload/) before the path it will append to the base URL and if ‘/’ (upload/) doesn’t exist then it will append to the existing path.

Or the Different way suggested in the comment –

<a href="{% url 'upload' %}">Upload post</a>

Leave a comment