[Fixed]-Href in Django for guest visitor to a user profile page

1👍

I actually ran into this issue a few days ago.

{% url 'users:profile' user.id as profile_link %}
<a href="{{ profile_link }}">Profile</a>

Also for the future, your example did not include single quotes between the namespace and name of the url. You should have {% url 'users:namehere' %}, not {% url users:namehere %}

👤Magic

Leave a comment