I'm currently using django-allauth to manage my registrations and logins.
Until now, all of my logins and signups have worked by having the django-allauth pages at the /accounts/
prefix for url patterns, so to register a new account you would navigate to /accounts/signup/
. I want to keep this functionality, but also want to introduce a signup form onto my landing page (at my base url), and I want to have a quick login form in my top banner from anywhere in my website (not /accounts/
).
My question is simple, how can we create login and signup forms anywhere throughout the site, without restricting it to a specific prefix of my urls?
If you want to create a signup/login form in your landing page or somewhere else, you can take a look at this question: https://stackoverflow.com/a/24179796/2230003
Basically, for a login/logout form using e-mail only and not username to login, the code in your template would be: