Simple Power of Django Validators // Python Django Tutorial // Form Validation // Model Validation

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 55

  • @ሊያምጆሴፍ
    @ሊያምጆሴፍ 4 года назад +2

    26:19 - "One of the biggest caveats to validators is if you programmatically call..." Thanks Justin! You saved me from wasting anymore time on this. I literally spent lots of days trying to figure out how to get custom validators work with object creation in codes. The official Python Document, Stack Overflow, and the whole wide Internet didn't point out this caveat but Justin did. Thanks again Justin! I very much appreciate all your videos!

  • @Jexdev
    @Jexdev 4 года назад +11

    No one understands the GOLD THIS IS. Thank you

    • @ሊያምጆሴፍ
      @ሊያምጆሴፍ 4 года назад

      I really do, because it's literally saved me from wasting any more time on something that didn't work for me - custom validators not working with object creation programatically.

  • @andrejpetrovic8240
    @andrejpetrovic8240 2 года назад

    97% of what you said I didn't understand! Yet again, today is the first time I've heard of validators.
    The learning search continues...!

  • @FranciscoAndres27
    @FranciscoAndres27 7 лет назад +13

    Justin, your channel is the best resource for web dev with django, keep it up, thank you!

  • @alvinsampow706
    @alvinsampow706 4 года назад +1

    Even though this video is from 2017, this really helps me with the form validation. Will keep it in mind.

  • @keinermendoza4631
    @keinermendoza4631 Год назад +1

    that explanation was quite enlightening. It was funny for me because many of the doubts that arose during the video were explained to me after a few seconds. excellent work.

  • @georgesmith3022
    @georgesmith3022 5 лет назад

    This was the best explanation on validators i found on youtube!

  • @ShivamSingh-bx5lg
    @ShivamSingh-bx5lg 4 года назад

    You teach very practical aspects of django which is ignored in most tutorials. Keep up the great work!

  • @tanyan675
    @tanyan675 2 года назад +1

    Love your videos, so useful as it shows how to program. Most videos show the basics, but not practical in the programming world. Please keep making intermediate and advanced videos - everyone is doing 'beginner' videos.

  • @sameergaikwad222
    @sameergaikwad222 4 года назад

    this is what i was looking for my django powered form validation fields.

  • @susanwowe7810
    @susanwowe7810 2 года назад

    Enjoy watching these videos, you explain concepts very well👍

  • @humammajeed3932
    @humammajeed3932 4 года назад

    its a great channel and presentation also very detailed nice content. Thank you Justin please keep it up

  • @mehrankader7521
    @mehrankader7521 7 лет назад

    Thanks for the amazing tutorials Justin, I just picked up Django 3 months ago and your tutorials helped out a lot :D. If you don't mind could you do a short tutorial to show how ManytoMany with through models work?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 лет назад

      +Mehran Kader thank you! We definitely cover that on joincfe.com/projects I believe in Django Models Unleashed

    • @mehrankader7521
      @mehrankader7521 7 лет назад

      CodingEntrepreneurs oh then I'll need to go check :D Thanks!

  • @os365
    @os365 7 лет назад

    Great, you are the best, thank you....
    Greetings from Colombia

  • @UndefinedHL
    @UndefinedHL 7 лет назад +4

    Do something about Celery and Unit testing. Great Video!

    • @beta5770
      @beta5770 7 лет назад

      I second this

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 лет назад +2

      +Kevin Morales cool cool thanks for the feedback. We have those on joincfe.com but perhaps it’s time they come to RUclips!

    • @UndefinedHL
      @UndefinedHL 7 лет назад +1

      That should be nice! I'll take a look in the web anyway

    • @Mezklador
      @Mezklador 7 лет назад +1

      Definetly agree with this features if it will be planned to be public (on YT). Maybe you can learn us some basics around Tornado, which has a poor learning environment, on YT or elsewhere...

    • @Ca1vema
      @Ca1vema 7 лет назад

      google obeythetestinggoat it's free django TDD development book, frequently updated, right now its up-dated to django 1.11

  • @Percianas
    @Percianas 3 года назад

    This video was incredibly helpfull. Thank you very much

  • @satorikomeiji3043
    @satorikomeiji3043 7 лет назад

    Thank you for sharing, this validation way makes it much easier to dev

  • @AliKhundmiri
    @AliKhundmiri 7 лет назад +1

    Hi Justin, a quick question, nothing to related to this video though.
    I am developing a web page, where the user uploaded images are modified using PIL, and stored in the directory with the original image uploaded (in media_cdn). I want to show this algorithm-generated image to users. But I cant find a way to display this image.
    StackOverflow link : stackoverflow.com/questions/46522008/django-how-can-i-load-images-created-by-site-using-image-uploaded-by-users
    Please respond, i am really stuck here.

  • @digital-music-artist
    @digital-music-artist 3 года назад

    thank you so much, it was realy cool. very useful

  • @nargeskhani4070
    @nargeskhani4070 2 года назад

    it was complete and great

  • @Asmrprogrammingfull
    @Asmrprogrammingfull 5 месяцев назад

    Thank you 🎉

  • @juanmejia7827
    @juanmejia7827 4 года назад

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

  • @samucancld
    @samucancld 2 года назад

    Pretty solid video, thanks.

  • @mmadevgame
    @mmadevgame 6 лет назад

    Thanks Justin!

  • @ajaypaul6009
    @ajaypaul6009 5 лет назад

    how can i load a form after checking if the values are in the database for the form fields of that modelform, and then view that partially parially filled form to the user to post the remaining fields which were not in database

  • @kkeshav
    @kkeshav 7 лет назад

    Can you make an video for integrating firebase with Django for authentication and storage.. that would make one hell of a video!

  • @bobbysinger2828
    @bobbysinger2828 3 года назад

    Thanks for your videos

  • @bosoyekehinde160
    @bosoyekehinde160 2 года назад

    thank you

  • @wiki-infodevelopment3369
    @wiki-infodevelopment3369 4 года назад

    Thank you, But it will not work if your methode = 'POST' and you have an IF statement in your views.py + your page POST is a class="modal fade"
    could you please tell us what is the solution?

  • @Asmrprogrammingfull
    @Asmrprogrammingfull 5 месяцев назад

    Good bro

  • @chiraggupta2264
    @chiraggupta2264 6 лет назад

    I am facing problem in validators . I defined my validators file and in response validators are coming in format such as
    {
    "error1" : ["reason"],
    "error2": ["reason"],
    "error3":["reason"],
    }
    and I need it in form of
    {
    "error1" : "reason",
    "error2": "reason",
    "error3":"reason",
    }

  • @steelwolf180
    @steelwolf180 7 лет назад

    It would be great that there's a tutorial for teat driven development?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 лет назад +1

      Cool thanks for the feedback. We have Django tests (based on Python's unittests) on joincfe.com/projects/

  • @stevesamah4018
    @stevesamah4018 4 года назад

    How do you validate the file size of an uploaded file

  • @ktorres9626
    @ktorres9626 7 лет назад

    do react and django rest framework, good video.

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 лет назад

      +__init__ py thanks! I’ll see what I can do. A lot of stuff in the pipeline.

  • @tochimclaren
    @tochimclaren 4 года назад

    How do you display a validation error when you are creating an object from signal?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  4 года назад

      Validate your data before saving a model

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  4 года назад

      So you'd pre-validate any data that might be passed to another model via a signal

  • @marcivs
    @marcivs 7 лет назад

    Link is down

  • @Wololeitor
    @Wololeitor 4 года назад

    GOLD POST