Wednesday, January 2, 2019

Re: Posting data from templates to views.py without using forms.

I guess you not using a frontend framework like reactJs or AngularJs. So i would suggest you look into AJAX. this could be done easily using jQuery's ajax function

On Tuesday, January 1, 2019 at 3:46:53 PM UTC+1, Surajeet Das wrote:
Well , I want to post data from templates to views.py by clicking a button without using forms. Basically the button should not be of type submit because I don't want the page to be refreshed .I want to view the data from database after the query in the same page. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bad4bd66-fc52-4489-9ab8-8fa47ee1848c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment