Try DJANGO Tutorial - 27 - Form Validation Methods

preview_player
Показать описание
Try DJANGO Tutorial series is here to teach you Django bit by bit.

Рекомендации по теме
Комментарии
Автор

What I like about these tutorials is they get straight to the point. There is no subscribe msg before-hand. Also, they contain lots of information.

dpapa
Автор

I was looking for this all day, thank you and you're awesome!

Diegofh
Автор

Hi
I tried to do validation for email to check if it exist or not .... the raise not working properly it render the same page with all fields except email its empty ... can you help ?
I need to show a message that the email is exist

hamkb
Автор

Waiting for the next tutorial!
Thanks

-sahlamahla
Автор

Hi, you have declared the functions def clean_email(self) and def clean_title(self) ; but where are you calling them ? I tried running it as is, but no validation error is being thrown on an invalid input
Thanks in advance

dhruvpathak
Автор

Great. Straight to the point. Solid work. Congratulations

Автор

Which one is more useful ? forms.ModelForm or forms.Form ?

khantech
Автор

how would u validate many to many fields in django form?

khalis
Автор

Good morning a question how could I validate that a field is unique in the @t since it does not use models ? Thanks

juanmejia
Автор

Thank you. Actually explained it clearly.

Darius
Автор

Thank you sir, Today I got my doubt cleared

venkymaguluri
Автор

How can we validate the format of a file(.txt, .csv, or any kind of format) which is uploaded by the user?

ayushkhandelwal
Автор

Thanks Justin I like your videos as I am learning django myself and they provide good reference points.
One question i have for validating forms is how to check for duplicates. I have tried using unique_together in the models but it is causing an error and im not sure why. Do you have a suggestion on the best way to validate for duplicate entries? e.g. only one book instance can be added to a library database.

htidme
Автор

so.. i have a field to put in Chinese name and a field to put in English name.
How should I do the validation for checking if the user is inputting a Chinese name in the field?

kken
Автор

Hi I am getting Value Error, Snippet didn't validate after submitting form.Please help in resolving this error, I am not getting any solution from anywhere. If I remove the code for raise ValidationError, no error is coming. I am using Django 2.2

deepaksehgal
Автор

"email" is not in the Product model, will it save if you leave the code like this? (assume valid email and valid form)

CMDRunematti
Автор

Are both RawProductForm and ProductForm necessary for saving data into the database. Can anyone of them only cannot save the data?

utkarshgupta
Автор

If I want string or number in the title field then I do?

shahidullahmiazi
Автор

How can I validate the size of a file in a modelform?

stevesamah
Автор

so why do we need 'forms.ModelForm' instead of just 'forms.Form' .. if in both we can get the same validations ? what is the difference of them ? where to use one - another

saidkarimsaidmahmudov