Django Custom Form Field Validation

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ •

  • @prettyprinted
    @prettyprinted  4 роки тому

    Join my free course on working with the database and models in Django: prettyprinted.com/djangodatabase

    • @ትኒጧትንኝ
      @ትኒጧትንኝ 4 роки тому

      I appreciate if you'd advise how to set a value to a hidden form field before it's saved to the database?

    • @sportworld429
      @sportworld429 3 роки тому

      @@ትኒጧትንኝ 😃😃😃😃😃😃😃

  • @josephlyons3393
    @josephlyons3393 4 роки тому +3

    Nice video. Helped me understand this a bit more. For your is_anagram() function, you can add in a if len(x) != len(y), return False check. Since length operations in python are O(1), that function will run in constant time when the words are not the same length, which trims down the execution in a lot of cases

  • @mrmuranga
    @mrmuranga 5 років тому

    Always learning new things or better ways of doing stuff through this channel....thanks

  • @jonl316
    @jonl316 2 роки тому

    Thanks so much, this was exactly what I needed!!

  • @itzmeraj6253
    @itzmeraj6253 3 роки тому

    Nice and clean...

  • @kaylagordon8567
    @kaylagordon8567 5 років тому +1

    Thanks for your hard work! Great tutorial! I have a video idea. I think it would be interesting to learn about a form that is spread over multiple pages. There are few tutorials out there. I think it can be done with the Django form wizard, but not sure.

    • @prettyprinted
      @prettyprinted  5 років тому

      You're welcome! I'll look into forms over multiple pages. I haven't had to work with one in years.

  • @LetCode96666
    @LetCode96666 4 роки тому

    This video helped me a lot! Like really a lot

  • @inighthawkk2223
    @inighthawkk2223 2 роки тому

    how to check value greater than or equal to previous value

  • @4everdefence
    @4everdefence 5 років тому

    is there any difference if you do your form validation in views.py instead of form.py?

  • @arjunasampath1472
    @arjunasampath1472 2 роки тому

    How that class function clean test gets invoked just creating objects of the class created in view?

  • @Gigolas88
    @Gigolas88 5 років тому

    Love your videos my man! Can you make video about having custom forms and than passing and validating data at django back-end please? I think that i'm having issue with that. My code works, but i'm not sure that its done "by the book".

    • @prettyprinted
      @prettyprinted  5 років тому +1

      I'll consider that idea. Thanks!

    • @Gigolas88
      @Gigolas88 5 років тому

      @@prettyprinted Another idea for your consideration is REST API + Front-end framework combo. Rest is big nowadays, as far as i understood. P.S. Thanks to your effort i made my first site, , you are the BEST!

  • @juanmejia7827
    @juanmejia7827 4 роки тому

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

  • @tejaspachpile9269
    @tejaspachpile9269 4 роки тому

    Hey, How can I change email with validator in profile update form

  • @enivre1717
    @enivre1717 4 роки тому

    How do I call the AnagramForm into index.html?

  • @delllatitude299
    @delllatitude299 5 років тому

    can you tell me how can i retrieve data from view to template using ajax after submit the form. without using rest framework api

  • @jyothiprakash461
    @jyothiprakash461 5 років тому

    Bro Do video for django IMDb movie api request please ,iam tried but I didn't get the correct output plz do one video

  • @sharonvictoria8417
    @sharonvictoria8417 4 роки тому

    Noice

  • @rajatmishra3515
    @rajatmishra3515 5 років тому

    Hi have a big project for you will you work with me . A million dollar deal