Tuesday, January 1, 2019

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

Hi Surjeet,

Then you should rely on ajax call or angularjs using ng-click.

On Tue, Jan 1, 2019 at 8:16 PM Surajeet Das <surajeet310@gmail.com> 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/9c195b3e-ab87-4a5a-a82d-ed8c5885477b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CAGGVXBM2y9bKUUq%2Bg-uwFLJhAZw7B%2B%3DqmDH6LUbVRtdmF4_0hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment