Using Multiple Select Fields with Flask-WTF and Flask-SQLAlchemy

  Рет қаралды 8,052

Pretty Printed

Pretty Printed

Күн бұрын

In this video I go over how to use the query select multiple field in WTForms with your SQLAlchemy models to create multi select fields.
Get the code I wrote in this video: prettyprinted....
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
Twitter: / pretty_printed
Github: github.com/pre...

Пікірлер: 16
@vadimpopoff3683
@vadimpopoff3683 11 ай бұрын
hell, man, it was so difficult from the start, but it took me only one day to integrate your logic to my small flask project and create and use data from different tables. Now it looks so easy. like hiking - watching it from the top to the bottom and seeing where I started. thank you, really helpful video
@DiogoSBastos
@DiogoSBastos 11 ай бұрын
Man, thank you so much!
@dikevictorpascal2357
@dikevictorpascal2357 Жыл бұрын
Hi, thank you so much for these videos, I love the way you teach them and I am really thankful for them. Pls, would you be kind to do one on authentication, authorization and jwt?
@prettyprinted
@prettyprinted Жыл бұрын
I have a video on JWT already, but it might be time for a new one. I'll see what I can do.
@passionforsciencel5180
@passionforsciencel5180 Жыл бұрын
i'm first who comment , i hope to see a video about how to make flask in heigh performance level pypy , asynchronous , gunicorn .... , please make it 😭😀😂🌹🔥
@prettyprinted
@prettyprinted Жыл бұрын
That's a good idea I haven't considered. I'll see what I can do.
@sabakurobban
@sabakurobban Жыл бұрын
I learn abit about db relationship here even if that wasnt the content ^^ I have one question, about db relationship. I see normally people links it with "id". And I also see that it requires user intervention to link the relationship in most guides. But if I already have a structure that you dont need to manually link the relationship, and just the code should take care of it. For example, I have a table with assets that contains Serialnumber as uniqe value. Then I have another table with for example accesories, also contains asset serialnumber but possible of duplicates. To link these two tables, should be done in 1-to-many relationship? And I want it to match the relationship by Serialnumber. Where does the code come iin, that does the "action" to link the relationships. ^^ Or is it better do use a different way? Like join or filter?
@AbhijeethSadineni
@AbhijeethSadineni 10 ай бұрын
hey how can i divide this code into multiple pages
@charliecode
@charliecode Жыл бұрын
by the way for people who will try it, it's "prefix_label" now not "prefix"
@timmanning9
@timmanning9 Жыл бұрын
Would you save this first form to the database if this had multiple views on the same route. For instance, the application TYPE FORM. It allows you to answer questions via multiple fields while changing views for each question field. I assume they don't save the fields until all the fields are submitted. Thoughts?
@prettyprinted
@prettyprinted Жыл бұрын
You'll need a way to keep track of the answers selected in the previous views. Saving to the database in a temporary table or partially filling the main table is the most straightforward way of doing that. Other ways are keeping the answers in the browser session or inside of a session on the server (which acts like another database).
@nanayaw7159
@nanayaw7159 Жыл бұрын
Dope
@prettyprinted
@prettyprinted Жыл бұрын
Thanks for watching!
@miiihaaas
@miiihaaas Жыл бұрын
👏👏👏👏can you upgrade code to have dropdown field with checkboxes?
@prettyprinted
@prettyprinted Жыл бұрын
I'll consider doing that, but if you want it for your app, you just replace the default widget with a radio widget for your SelectField.
@charliecode
@charliecode Жыл бұрын
is it a new way to do many-to-many, i see it's different from what you did in an old video
How to Use Flask-SQLAlchemy With Flask Blueprints
20:10
Pretty Printed
Рет қаралды 35 М.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 206 М.
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 1,9 МЛН
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 19 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 36 МЛН
TypeScript using React js
2:31
Sanjay Mahajan
Рет қаралды 17
Web Forms With WTF! - Flask Fridays #5
22:56
Codemy.com
Рет қаралды 68 М.
Intro to Flask-WTF (Part 1 of 5)
12:15
Pretty Printed
Рет қаралды 53 М.
SQLAlchemy ORM crash course - Learn SQLAlchemy in 1 hour
1:00:35
Demos Petsas
Рет қаралды 20 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
Organizing a Flask Project Beyond Single File
9:38
Pretty Printed
Рет қаралды 33 М.
Using Databases With Flask - Python and Flask #8
24:16
Codemy.com
Рет қаралды 75 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 267 М.
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 1,9 МЛН