Ishmanpreet Singh
Ishmanpreet Singh

Reputation: 21

Prevent reloading after submit button in django

I have code written completely in django using get/post method. After submitting the button, it reloads the page. How can I stop reloading the page whenever we are submitting a form?

Upvotes: 0

Views: 1813

Answers (1)

Parth Modi
Parth Modi

Reputation: 291

I think you should try to submit form with AJAX. To stop reloading the page you should have to use ajax. you can follow the link this may solve your problem Click Here

Upvotes: 1

Related Questions