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?
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 :)
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
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
By far your Flask tutorials are the best ever...
Thanks for watching!
Very nice! Going to change all my forms to FlaskWTF. Thanks for the tutorial.
You're welcome! Thanks for watching.
Great vids mate!! Definitely keen to check out your courses after this...
Thank you very much! this video is really what I needed!
Great stuff! Working on my first Flask project and this is helping out big time!
I'm glad it helps. good luck with your project!
Thanks for watching everyone. Check out prettyprinted.com for Flask courses.
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?
Yeah, I'm using a macro. You can make your render_field have whatever extra HTML you want though.
Just what I needed!
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 :)
Hi Anthony
How to do the same for input type =file ( design for uploading file)? Thanks
You'll have to use the file input in WTForms. Then the process becomes similar to what's in the video.
good video man
how can I change a input type IntergerField is type=text I would like to change it to type=number
You want to import the IntegerField from wtforms.fields.html5 instead. github.com/wtforms/wtforms/blob/master/wtforms/fields/html5.py
yes thanks I found it thanks for reply really appreciate it
Video series request: flask-restful. Thank you
Good one. Thanks for the idea.
from where you get the original template you haven't mentioned it !!
I can't remember anymore. I should have mentioned it!
Why didn't you use Flask-Bootstrap?
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
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
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?
yes, in general, how to add it and store to db with html tags
OK, I'll add that to my list of videos to make.
Thank you, super
also would be helpful if you add to your list how to add custom field as
- date picker
- date time picker
- input spinner