Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 851 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 851 Bytes

Aim

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.

Installation & Requirements

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.