Another way, maybe more familiar to u is to create the form directly
on the template (html) ..something like
<form id="myform" method="post" action="your_view">
<input type="text" id="inp_1" name="name_1"></input>
</form>

And then in the view:
def your_view(request):
if request.method == "POST":
 return HttpResponse("My name is", request.POST["name_1"]
else:
 return HttpResponse("Error, method must be POST"]

And of course, add the path to your view in the urls.py file...
Greetings


2021-05-21 7:14 GMT-04:00, Théodore KOSSI <kossitheod...@gmail.com>:
> thanks you very much
>
> Le ven. 21 mai 2021 à 11:53, sebasti...@gmail.com
> <sebastian.ju...@gmail.com>
> a écrit :
>
>> Here are a tutorial for django with explanations how you can use forms in
>> django
>>
>> https://tutorial.djangogirls.org/en/django_forms/
>>
>> gabriels...@gmail.com schrieb am Freitag, 21. Mai 2021 um 12:32:51 UTC+2:
>>
>>> From django import forms
>>> Class Feedback(forms.form):
>>>      name = forms.CharField(widget=forms.TextInput)
>>>
>>> Just like that and you import it into your views
>>> If you want more information you can read the django documentation too
>>>
>>> On Fri, 21 May 2021 at 09:44 Théodore KOSSI <kossit...@gmail.com> wrote:
>>>
>>>> okay I understand. So , I want to create A general form. What can I
>>>> use?
>>>>
>>>>
>>>> Le ven. 21 mai 2021 à 10:33, 712189512 <gabriels...@gmail.com> a écrit
>>>> :
>>>>
>>>>> Both forms are pretty easy to use
>>>>> Model form makes it more simpler because it takes your model and
>>>>> creates a form out of your model for you whereas general form you have
>>>>> to
>>>>> do everything from scratch
>>>>>
>>>>> On Fri, 21 May 2021 at 09:29 Théodore KOSSI <kossit...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> general usage form. Tell me what the importance of model form?
>>>>>>
>>>>>>
>>>>>> Le ven. 21 mai 2021 à 10:27, 712189512 <gabriels...@gmail.com> a
>>>>>> écrit :
>>>>>>
>>>>>>> It depends on what you want to do
>>>>>>> Are creating the form from a model or a general usage form
>>>>>>>
>>>>>>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI <kossit...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hellooo guys, I need your help. I want to create a form in django
>>>>>>>> and I don't know exactly what i can use to create it.
>>>>>>>>
>>>>>>>> --
>>>>>>>> theodoros17@python-developer
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> Gabrielstone😎
>>>>>>>
>>>>>>> --
>>>>>>> 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...@googlegroups.com.
>>>>>>>
>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> theodoros17@python-developer
>>>>>>
>>>>>> --
>>>>>> 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...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> Gabrielstone😎
>>>>>
>>>>> --
>>>>> 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...@googlegroups.com.
>>>>>
>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> theodoros17@python-developer
>>>>
>>>> --
>>>> 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...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> Gabrielstone😎
>>>
>> --
>> 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/0e093d46-bb7f-463b-b575-ddd791be2634n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/0e093d46-bb7f-463b-b575-ddd791be2634n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> theodoros17@python-developer
>
> --
> 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/CAKiMjQGKOK8zfS06-yX9T06QG8KVJGUZv907uoBFoDN9VtqTeQ%40mail.gmail.com.
>

-- 
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/CAObPVPAVuXmdGb8eb2Qg-GE35DUvAdh8X%2B_ANb5QoU-EdZk1Vg%40mail.gmail.com.

Reply via email to