python - How to put default Django Login in Bootstrap Modal? -
i created login template , imported default url routing following mdn's guide, want put modal not have user go through many redirects. realize variants of question have been asked, read through many , still confused.
i have template configured in mdn link, if try taking content , pasting directly modal in template, not show fields since depend on django template variables. believe default url config
from django.contrib.auth import views auth_views url(r'^accounts/login/$', auth_views.loginview.as_view()), but i'm pretty confused since built in.
all had implement login form write login template , add url(r'^accounts/', include('django.contrib.auth.urls')), project urls, pretty daunting create modal login here.
do have write new loginview class well? should using django-crispy-forms? post data, need use ajax instead when field incorrect? guidance appreciated.
Comments
Post a Comment