You can use forms.Form when you want to build a custom form which isn't
directly connected to a model on the database. For instance one use for a
forms.Form is where you are collecting data which will be stored into
attributes on different models.
The documentation I think uses
I read this, but in tutorial not used forms.Form class. I know how created
forms on models.Model and forms.Form. But when I must use first and when
second?
суббота, 12 марта 2016 г., 0:56:34 UTC+3 пользователь James Schneider
написал:
>
> On Mar 10, 2016 9:01 PM, "Denis Makarov"
>
> On Mar 10, 2016 9:01 PM, "Denis Makarov" wrote:
>> >
>> > Hello guys! In whitch cases need to use models.Model class and in
>> whitch forms.Form?
>>
>> Models define tables in a database. Forms assist in creating HTML forms
>> for gathering, valididating and saving user
You mean, that I must use Models.Model for database and Forms for creating
forms both?
пятница, 11 марта 2016 г., 7:06:01 UTC+3 пользователь bob gailer написал:
>
>
> On Mar 10, 2016 9:01 PM, "Denis Makarov" > wrote:
> >
> > Hello guys! In whitch cases need to use
On Mar 10, 2016 9:01 PM, "Denis Makarov" wrote:
>
> Hello guys! In whitch cases need to use models.Model class and in whitch
forms.Form?
Models define tables in a database. Forms assist in creating HTML forms for
gathering, valididating and saving user input. Does that
Hello guys! In whitch cases need to use models.Model class and in whitch
forms.Form?
Don't understand it readed the documentation.
--
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
6 matches
Mail list logo