added ajax api call to django