2👍
✅
It looks like you have something like <a href="admin/">
in your template. This tells to the browser “go to the subdirectory admin please”, while what you want is “go to the URL /admin from the root of my website”.
What you need is to use the {% url %}
templatetag, which will prevent those sort of mistakes:
<a href="{% url 'my_admin_view' %}">Admin link</a>
Source:stackexchange.com