I have a sign-in template and I want to add an icon that users can click to go to the google authentication process. I have Django allauth, but how can I get the right url for the google flow?
I tried <a href="{% url 'account_login' %}"> but it sends the user to the login page while I want to send them straight to accounts/google/login/ (ideally generating the url using django and not harcoding it. )
>Solution :
try to use this instead :
<a href="{% provider_login_url 'google' %}">Login with Google</a>