Re: Django Post request error
Thank you for your response It works for me. I have forgeted to close form tag. Thank you so much. Thanks & Regards Ruturaj On Fri, 13 Sep, 2019, 8:14 PM Nelson Varela, wrote: > You have to close your first form. > > So put somewhere before the second form > > Op vrijdag 13 september 2019 15:53:48 UTC+2 schreef Ruturaj Singare: >> >> Hi Everyone I got one problem I have 2 form in index.html but having its >> own url pattern but both forms redirects to on e url using post request can >> you please help me. >> >> I am your regular subscriber on youtube >> Please help >> >> My url patterns : >> >> >> urlpatterns = [ >> path('admin/', admin.site.urls), >> path('', views.index, name='index'), >> path('home', views.index, name='index'), >> path('paid', views.paid, name='paid') >> ] >> >> >> My index.html form section >> >> >> >> {% csrf_token %} >> >> >> >> >> >> >> Sr. No >> Menu Items >> Quantity >> >> >> >> {% for order in orderList %} >> >> {{ forloop.counter }} >> {{ order.MenuItem }} >> {{ order.Qty }} >> >> {% endfor %} >> >> >> >> {% csrf_token %} >> >> >> >> >> >> >> >> >> >> I think all ok but not working >> >> -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/9052b0d8-576b-48f6-bf22-3d657316c762%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/9052b0d8-576b-48f6-bf22-3d657316c762%40googlegroups.com?utm_medium=email_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEhU20f1wnC_0JxwWCEt%3Dg%3DqTLGBcLmdnsFg3JjUn2ZP9LMt8Q%40mail.gmail.com.
Django html form post request error
Hi Everyone I got one problem I have 2 form in index.html but having its own url pattern but both forms redirects to on e url using post request can you please help me. Both are forms are going to redirect on same url that is /home why second form are not going to on /paid I didn't understand. Please help My url patterns : urlpatterns = [ path('admin/', admin.site.urls), path('', views.index, name='index'), path('home', views.index, name='index'), path('paid', views.paid, name='paid') ] My index.html form section {% csrf_token %} Sr. No Menu Items Quantity {% for order in orderList %} {{ forloop.counter }} {{ order.MenuItem }} {{ order.Qty }} {% endfor %} {% csrf_token %} I think all ok but not working -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/102d475c-c3af-4bfa-9472-5ef65fdfbba4%40googlegroups.com.
Django Post request erro
Hi Everyone I got one problem I have 2 form in index.html but having its own url pattern but both forms redirects to on e url using post request can you please help me. I am your regular subscriber on youtube Please help My url patterns : urlpatterns = [ path('admin/', admin.site.urls), path('', views.index, name='index'), path('home', views.index, name='index'), path('paid', views.paid, name='paid') ] My index.html form section {% csrf_token %} Sr. No Menu Items Quantity {% for order in orderList %} {{ forloop.counter }} {{ order.MenuItem }} {{ order.Qty }} {% endfor %} {% csrf_token %} I think all ok but not working -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEhU20eLZt-%2B4u-kntwUzLL%3DO2vBbYXZ1FthB5Jn90Pb7wOT3Q%40mail.gmail.com.