如何在主页中将django-allauth实施为模态? [英] How to implement django-allauth in homepage as modal?
问题描述
基于这种想法的问题很少,例如:
https://www.reddit.com/r/django/评论/30lz11/django_allauth_implement_loginsignup_on_homepage/
但是我需要更多帮助.我了解我必须将模式操作形式的url设为 {%url'account_login'%}
.我包含了 {%load account%}
,并更改了用户名和密码字段的名称"和"id".我的问题是要实现此目标还需要做哪些其他事情,因为它仍然无法正常工作.
我有同样的问题,我为到目前为止发现的3种方法写了 tutorial
很少.您可以在 https://stackoverflow.com/a/39235634/4992248
P.S.如果这只是一种方法,我会在这里发布,但是由于我不知道您偏爱哪种方法,因此只给您一个链接.
There are few questions based on this idea like:
Implementing Ajax requests / response with django-allauth
Log in / Sign up directly on home page
https://www.reddit.com/r/django/comments/30lz11/django_allauth_implement_loginsignup_on_homepage/
but I need a little more help. I understand that I have to make form action url of modal as {% url 'account_login' %}
. I have included {% load account %}
and changed the 'name' and 'id' of username and password fields. My question is what other things I need to do to achieve this as it is still not working.
I had the same question and I wrote little tutorial
for 3 methods I found so far. You can find details at https://stackoverflow.com/a/39235634/4992248
P.S. If it was just one method, I would post it here, but because I do not know which one you would prefer, I simply give you a link.
这篇关于如何在主页中将django-allauth实施为模态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!