Hi Sipum,
yes, you are right!

Best Greetings

bengoshi

Am Mo., 24. Juni 2019 um 08:45 Uhr schrieb Sipum Mishra <[email protected]>:

> 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, <[email protected]>
> wrote:
>
>> Thanks for your responses. I didn't describe it well.. if I write
>>
>> <form action="journal" method="POST">
>> 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't understand becauce 
>> in my understanding
>> action should not have any effect for saving data.
>>
>> Greetings
>> bengoshi
>>
>>
>> Am Sonntag, 23. Juni 2019 19:31:05 UTC+2 schrieb Sipum:
>>>
>>> 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, <[email protected]>
>>> wrote:
>>>
>>>> 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 <[email protected]> schrieb am So., 23. Juni 2019, 17:57:
>>>>
>>>>> Hi,
>>>>> I tried to write a form:
>>>>>
>>>>> ###
>>>>>
>>>>> {% extends 'base.html' %}
>>>>> {% block content %}
>>>>> <h1>Test</h1>
>>>>> <form method="POST">
>>>>>     {% csrf_token %}
>>>>>     {{ form.as_p }}
>>>>>     <input type='submit' value='Save'/>
>>>>> </form>
>>>>> {% endblock %}
>>>>> ###
>>>>>
>>>>> and it works. But if I replace it with
>>>>>
>>>>> <form action="journal" method="POST"
>>>>>
>>>>> "journal" is a view for shown the saved data which work, too. If I click 
>>>>> to "Save" it change to "journal" but won't save the data anymoren.
>>>>>
>>>>> Could anybody explain me please this behavior?
>>>>>
>>>>> Thanks and Greetings
>>>>>
>>>>> bengoshi
>>>>>
>>>>>
>>>>> --
>>>>> 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 [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> 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/e153dd08-3678-4620-8f1d-dae1fa1b978f%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/e153dd08-3678-4620-8f1d-dae1fa1b978f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> 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 [email protected].
>>>> To post to this group, send email to [email protected].
>>>> 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/CAKGT9mxSq-ZKdQc_zUdHZmqZ5g%2Bfr8YVn0Upm%3DWru9SD6%3DwWkg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAKGT9mxSq-ZKdQc_zUdHZmqZ5g%2Bfr8YVn0Upm%3DWru9SD6%3DwWkg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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/3ffc7b93-4536-4c29-9998-1d4b10e380dc%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/3ffc7b93-4536-4c29-9998-1d4b10e380dc%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/CAGHZBzx6CbvXyqD3Z5HnEh3f3FYd5AmyEJDVNEunzyp4X3dfuA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGHZBzx6CbvXyqD3Z5HnEh3f3FYd5AmyEJDVNEunzyp4X3dfuA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
herz-jesu-jugend.de
jetzt neu: http://bit.ly/2oJT6mB

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CACs-sWdreofz%3DH_aCn5t3FW7CSOoy%3DR-6auWJi53EeDDNTD3-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to