1👍
✅
You must modify your hard coded links to use Django’s reversal methods. For example, instead of
<a href="/login/">Login</a>
you should use
<a href="{% url 'accounts_login' %}">Login</a>
this will allow Django to dynamically determine the URLs with respect to the root URL.
Source:stackexchange.com