django ajax login
1.0.0
Initiated from this SO question. Displays a modal allowing to login or register for an account with ajax. The modal would popup if an ajax action requiring authentication returns Unauthorized (assumed unauthenticated).
This is far to work out of the box, you are invited to discover the code. Any help to improve & package the code is much appreciated.
Copy the files in the good locations & D(R/I)Y.
This is designed to work with Django 1.6
, python-social-auth
, django-registration
, Bootstrap
& django-crispy-forms
But it is more here to give an idea on how we could achieve an ajax login/registration.
Please check the test page (template/test.html) to help you understand.