Hi, I have a project hosted in Pythonanywhere.
I’m using django auth_views.LoginView.as_view. was working fine, but after a while users are not being logged whitout aparent reason.
url path:
path(‘login/’, auth_views.LoginView.as_view(template_name=‘usuarios/login.html’), name=‘login’),
Login template:
{% extends “publicaciones/base.html” %}
{% load crispy_forms_tags %}
{% block content %}
{% csrf_token %}
Iniciar sesión
{{ form|crispy }}
{% endblock content %}
There are not not login errors in the error log, ant it appears as login successful.
Could someobe please tell me how can this be fixed?
Thanks
Hello there, welcome to the forum.
When posting code/templates here, please use the code block format using 3 backticks, this character: `
before and after your code. This would help other members of the forum to read your post more properly, and with this maybe more people would be able to reply your question.
Have you tried changed the form||crispy
to a simple handwritten form and checking if you’re having the same issue? Another important information is which version of django are you using.