Help on Django_allauth Login Page

65 views
Skip to first unread message

ALINDA Fortunate

unread,
Mar 8, 2024, 9:36:10 AM3/8/24
to django...@googlegroups.com
Hello colleagues, I have the following code for my login page using django_allauth but it outputs the forgot password? link. How do I edit this?

<!-- templates/account/login.html-->
{% extends "_base.html" %}

{%load crispy_forms_tags%}

{% block title %}Log In{% endblock title %}
{% block content %}
<h1>Log In</h1>
<form method="post">{% csrf_token%}
    {{form | crispy}}

    <button class="btn btn-success" type="submit">Log In</button>

</form>
{% endblock content %} 


And the output has forgot password? link. How do I remove it or style it?

Below is the output. 


image.png

--
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
Kagadi.

Muhammad Juwaini Abdul Rahman

unread,
Mar 8, 2024, 9:48:45 AM3/8/24
to django...@googlegroups.com
It's part of LoginForm in django_allauth: https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146

You can subclass LoginForm and omit that part.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%40mail.gmail.com.

ALINDA Fortunate

unread,
Mar 8, 2024, 10:03:04 AM3/8/24
to django...@googlegroups.com
Thank you for your response, okay let me try it

Reply all
Reply to author
Forward
0 new messages