1
I managed to create and log a user into the system, but the logout does not work and I do not understand the reason.
View:
def logout_view(request):
logout(request)
return redirect('home')
html file that calls the url that in turn calls the view:
<div class="dropdown-menu ">
<a class="dropdown-item " href="#">Perfil</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
</div>
Url:
path('home.html',views.logout_view,name='logout')
It worked now, thanks!!
– Eudson Durães
Okay, Arrange.
– Alison Walker