Flask-WTF - Converting a Bootstrap Template (5 of 5)

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 32

  • @prettyprinted
    @prettyprinted  4 ปีที่แล้ว

    Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql

  • @OrientalMelodies2010
    @OrientalMelodies2010 4 ปีที่แล้ว +1

    By far your Flask tutorials are the best ever...

  • @koodauskanava9096
    @koodauskanava9096 7 ปีที่แล้ว +2

    Very nice! Going to change all my forms to FlaskWTF. Thanks for the tutorial.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @xz7525
    @xz7525 4 ปีที่แล้ว

    Great vids mate!! Definitely keen to check out your courses after this...

  • @yuqiyu127
    @yuqiyu127 4 ปีที่แล้ว +1

    Thank you very much! this video is really what I needed!

  • @alexanderwitte9919
    @alexanderwitte9919 7 ปีที่แล้ว +1

    Great stuff! Working on my first Flask project and this is helping out big time!

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      I'm glad it helps. good luck with your project!

  • @prettyprinted
    @prettyprinted  7 ปีที่แล้ว

    Thanks for watching everyone. Check out prettyprinted.com for Flask courses.

  • @anhelido
    @anhelido 5 ปีที่แล้ว

    I noticed that wherever you substitute html for render_field the result is not exactly the same as before, fields have more separation. Why is that? Is there any extra html code like emitted between render_fields?

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      Yeah, I'm using a macro. You can make your render_field have whatever extra HTML you want though.

  • @coop4476
    @coop4476 4 ปีที่แล้ว

    Just what I needed!

  • @AnikeshSinha
    @AnikeshSinha 5 ปีที่แล้ว +1

    Hi! I have been following you from much late :) A great channel recommended for FLASK. I have an issue. I am fetching data from a DATABASE and putting validations. However, I need some fields to be blank based on the requirement, so can you let me know the code i need to write for it?
    class InsertForm(FlaskForm):
    DB_MONITOR_CATEGORY = StringField('DB_MONITOR_T', validators=[?])
    DB_MONITOR_HEADING = StringField('DB_MONITOR_HEADING')
    I need the ? to be Optional based on the field i am going to Input.
    As of now, I need to fill in ALL the fields for the INSERT statement to work.
    Thanks a lot in advance :)

  • @saaidhasbi1802
    @saaidhasbi1802 6 ปีที่แล้ว

    Hi Anthony
    How to do the same for input type =file ( design for uploading file)? Thanks

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      You'll have to use the file input in WTForms. Then the process becomes similar to what's in the video.

  • @quechon1
    @quechon1 7 ปีที่แล้ว

    good video man
    how can I change a input type IntergerField is type=text I would like to change it to type=number

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      You want to import the IntegerField from wtforms.fields.html5 instead. github.com/wtforms/wtforms/blob/master/wtforms/fields/html5.py

    • @quechon1
      @quechon1 7 ปีที่แล้ว

      yes thanks I found it thanks for reply really appreciate it

  • @sanjayshr1921
    @sanjayshr1921 7 ปีที่แล้ว

    Video series request: flask-restful. Thank you

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Good one. Thanks for the idea.

  • @sabitmahmud7652
    @sabitmahmud7652 7 ปีที่แล้ว

    from where you get the original template you haven't mentioned it !!

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      I can't remember anymore. I should have mentioned it!

  • @АндрійОрєхов-э1р
    @АндрійОрєхов-э1р 7 ปีที่แล้ว

    Why didn't you use Flask-Bootstrap?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      To minimize the use of extra extensions. And I already have a video doing just that here: th-cam.com/video/S7ZLiUabaEo/w-d-xo.html

  • @Denys.Stoianov
    @Denys.Stoianov 7 ปีที่แล้ว

    Can you please show how to add to Text Aria this ckeditor.com/ editor, here gist.github.com/mrjoes/5189850 and in the others sources you can find only how to do it for Flask-Admin,
    and by the way BIG THANK YOU for your videos

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Hey Denys,
      Do you mean create a video on how to add the editor to Flask-Admin, or how to add it to a Flask app in general?

    • @Denys.Stoianov
      @Denys.Stoianov 7 ปีที่แล้ว

      yes, in general, how to add it and store to db with html tags

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      OK, I'll add that to my list of videos to make.

    • @Denys.Stoianov
      @Denys.Stoianov 7 ปีที่แล้ว

      Thank you, super

    • @Denys.Stoianov
      @Denys.Stoianov 7 ปีที่แล้ว

      also would be helpful if you add to your list how to add custom field as
      - date picker
      - date time picker
      - input spinner