Django model CheckConstraint | Pytest Testing | Model Level Constraint

preview_player
Показать описание
In this tutorial we test a check constraint in the database using a test first approach and then create a check constraint in the database. We then move to test a custom form validation of a form used in the django admin site
and create a custom model validation constraint.

Code Repository:

✨ Support us - join us as a Very Academy Member

👍SUBSCRIBE to get more free tutorials, courses and code snippets!
Рекомендации по теме
Комментарии
Автор

You are best, i have learnt a lot of django rest framework because of you

sankethb.k
Автор

Thank you. You are good teacher.
Best regards

PP-tczp
Автор

Great Videos, I recently started working and don't like watching videos but yours seem to very helpful. Although I'd prefer if you could do some short videos on complex topics like scaling, third party authentication, improving performance etc

animeshsingh
Автор

Thank you!!
I really love your channel

GustavoPMex
Автор

Hi sir long time no new video…hope everything is ok! Please upload more videos 😍😊 thanks!

CoCo-yzjh
Автор

Excellent video. Can you make video on loggers in DRF? Because only you can explain it

aakashbhaikatti
Автор

Hoping for a nuxtjs integration and deployment video with django :)

corewwwi
Автор

Thats nice but my only question is why use constraint if we are able to implement check in clean ()

ytg
Автор

Hi, I have a request. Please create a tutorial on multiple file upload to folder using Django and vuejs integration

rangabharath
Автор

Interesting fact, in python you could do 10 < self.age < 20

lautarodapin
Автор

Do you need the check constraints at all if you can just add validators to the model fields that need it, e.g. handling phone numbers or zip codes via CharFields with validators?

GeneralBlorp
welcome to shbcf.ru