Re: action in a form

2019-06-24 Thread Kai Kobschätzki
Well, perhaps there is my misunderstanding: I thought if I press "save" it pass through the functions journal_booking_view and then it call the action-argument. Otherwise there is no action-argument it calls the journal_booking_view for saving the view. I'm confused. Greetings bengoshi On 6/24/

Re: action in a form

2019-06-24 Thread Sebastian Jung
You send your Form to function journal_overview_view. There are nothing with save() Regards Kai Kobschätzki schrieb am Mo., 24. Juni 2019, 21:14: > Hi Sebastian, > > here is the code: > > urls.py: > > from django.contrib import admin > from django.urls import path > from rewe.views import accou

Re: action in a form

2019-06-24 Thread Kai Kobschätzki
Hi Sebastian, here is the code: urls.py: from django.contrib import admin from django.urls import path from rewe.views import account_overview_view, journal_booking_view, journal_overview_view from crm.views import member_overview_view, member_create_view urlpatterns = [ path('', journal_o

Re: action in a form

2019-06-24 Thread Sebastian Jung
Hello, Please Post us your url.py template and the related function from view.py Regards bengoshi schrieb am So., 23. Juni 2019, 22:36: > Thanks for your responses. I didn't describe it well.. if I write > > > it calls the url journal and this is the my requested result. All fine. > Without t

Re: action in a form

2019-06-23 Thread Kai Kobschätzki
Hi Sipum, yes, you are right! Best Greetings bengoshi Am Mo., 24. Juni 2019 um 08:45 Uhr schrieb Sipum Mishra : > Hi bengoshi, > > If i m not wrong, your concern is when you add action ='journal' then data > are not saved. > Right? > > Thanks. > > > On Mon, 24 Jun, 2019, 2:07 AM bengoshi, > wr

Re: action in a form

2019-06-23 Thread Sipum Mishra
Hi bengoshi, If i m not wrong, your concern is when you add action ='journal' then data are not saved. Right? Thanks. On Mon, 24 Jun, 2019, 2:07 AM bengoshi, wrote: > Thanks for your responses. I didn't describe it well.. if I write > > > it calls the url journal and this is the my requested

Re: action in a form

2019-06-23 Thread bengoshi
Thanks for your responses. I didn't describe it well.. if I write it calls the url journal and this is the my requested result. All fine. Without the attribute "action" the form save the input in the database - the requested result, great. With "action" it doesn't. That is the point which I don

Re: action in a form

2019-06-23 Thread Sipum Mishra
Hello, In action use the url associated with that view then it will work for you. If not then kindly tell what errors you are getting. Thanks. On Sun, 23 Jun, 2019, 10:17 PM Sebastian Jung, wrote: > Hello, > > You must Put in Action not a Name from a function. You must Put a url dir > example

Re: action in a form

2019-06-23 Thread Lutalo Bbosa joseph
as jung suggests action is meant to take in a url forexample action =" {% url "cart:journal" %}", where cart is name of the cart and journal is the name of the url On Sun, Jun 23, 2019 at 7:47 PM Sebastian Jung wrote: > Hello, > > You must Put in Action not a Name from a function. You must Put

Re: action in a form

2019-06-23 Thread Sebastian Jung
Hello, You must Put in Action not a Name from a function. You must Put a url dir example action="/newurl/" And in your url a Link from /newurl/ to the function Regards bengoshi schrieb am So., 23. Juni 2019, 17:57: > Hi, > I tried to write a form: > > ### > > {% extends 'base.html' %} > {% bl

action in a form

2019-06-23 Thread bengoshi
Hi, I tried to write a form: ### {% extends 'base.html' %} {% block content %} Test {% csrf_token %} {{ form.as_p }} {% endblock %} ### and it works. But if I replace it with https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.go