2π
β
You are not returning false from your Javascript submit
function. That means that the Ajax is fired, but before it has a chance to do anything, the default action of the button happens and the form is submitted normally, which is why the is_ajax function returns false. If the JS returns false, the action will not be fired.
π€Daniel Roseman
0π
try changing this url(r'^ecosystem/ajaxmes', 'container.views.ajaxmes')
, to this url(r'^ecosystem/ajaxmes/', 'container.views.ajaxmes'),
you are sending the request to β/ecosystem/ajaxmes/β but since in your urls.py you donβt have the trailing slash, it is getting redirected.
π€Al W
- [Answered ]-No module named 'Queue' when I try to start celery
- [Answered ]-Django β Change timeuntil language without changing application language
- [Answered ]-Django: How add field to form from model?
- [Answered ]-How to add script to Django app?
Source:stackexchange.com