Changing Password in Django using Jquery/Ajax
I posted about this not so long ago without using JQuery/Ajax, here is the link .This time, with different approach and much easier.All you need to do is create function in views.py then use it in urls.py and call the URL using Ajax. HTML: <form action="/change_pw/" method="post" id="frmChangePW"> {% csrf_token %} <div class="form-group"> <label for="id_old_password">Old Password:</label> <input class="form-control" id="id_old_password" name="old_password" type="password" placeholder="Old Password" autofocus=""> </div> <div class="form-group"> <label for="id_new_password">New Password: <input class="form-control" id="id_new_password" name="new_password" placeholder="New Password" type="password"> </label> ...