Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Jani Tiainen
Hi, I also suggest that take a look at Django Girls tutorial. It does pretty good job at describing web basics and django same time. https://tutorial.djangogirls.org/en/ On Sat, Apr 20, 2019 at 10:17 AM Mayur Bagul wrote: > Hello Community, > > i'm facing one problem. Scenario is such that

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Gil Obradors
Before continuing with this, read some about http methods like : https://www.tutorialspoint.com/http/http_methods.htm Yes, it's suported. one example function playing with post requests: def form(request): form = facturaForm if request.method == 'POST':

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Mayur Bagul
hello gil, thanks for tutorial link i will check it out that one. As you gave solution of calling a function via view i did so but it didnt worked and another thing i dint understand is about post i thought it didnt support in django. can you please provide me little code your talking about

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Gil Obradors
Hi! If you want you can re-use django.contrib.auth package Here one tutorial: https://wsvincent.com/django-user-authentication-tutorial-login-and-logout/ Otherwise, you can do a POST to a URL, and this url (url.py) call a function ( views.py) Good luck! Missatge de Mayur Bagul del dia ds.,

How to provide function calling event for button in django html templates ?

2019-04-20 Thread Mayur Bagul
Hello Community, i'm facing one problem. Scenario is such that i have one template login.html in Django Project, inside this file i have wrote html code for login purpose. what i want that once user click on Log-In Button it should call function ( onclick using Javascript cant use in Django)