Flask CRUD Application Full Course With SQLAlchemy | Python Flask

  Рет қаралды 179,429

Parwiz Forogh

Parwiz Forogh

Күн бұрын

Пікірлер: 255
@ParwizForogh
@ParwizForogh Жыл бұрын
You can join the new and updated of this course with AWS features, this is the link kzbin.info/www/bejne/l4qYipqXrMdsis0
@Islam-and-boxing
@Islam-and-boxing 2 ай бұрын
Do you have this code available to copy?
@tompis1442
@tompis1442 2 жыл бұрын
So this guys right here started my whole career. I watched this video a year ago and this video game me so much confidence, that now I have a full time job. I cant believe I just saw this video on my recommends! THAT YOU BRO!
@revanthshahukaru7883
@revanthshahukaru7883 2 жыл бұрын
The Bootstrap 5 Navbar still uses flexbox, but the concept of right and left, have changed to start and end for new RTL support. So, instead of float-right, use float-end Also, take attention that bootstrap 5 changed data-toggle to data-bs-toggle and data-target to data-bs-target
@rahmadilhamsani7227
@rahmadilhamsani7227 Жыл бұрын
thank you bro
@drogokhal3058
@drogokhal3058 Жыл бұрын
thank you very much !
@sukardiLayarda
@sukardiLayarda Жыл бұрын
thank you,
@bebekkarki6162
@bebekkarki6162 7 ай бұрын
thanks bro thank you soo much
@alanpolato831
@alanpolato831 Ай бұрын
Thanks man! This does also apply for "data-dismiss" that became "data-bs-dismiss" in button configuration.
@birusingh410
@birusingh410 3 жыл бұрын
Explanation is clear specially frontend part. Being a backend developer I feel frontend is tough but you made such a nice page with simple steps.
@megafunny789
@megafunny789 Жыл бұрын
You just taught what my professor has tried teaching the past 10 class periods. Each class is 2 hours long.
@VoiceThatMatter
@VoiceThatMatter 11 ай бұрын
Thank You. First time I have learned something on flask. Rudraprasad Mohapatra
@tahep3906
@tahep3906 4 жыл бұрын
I'm glad that I've also learned how to use bootstrap modals, they are very useful for this kind of operations, thanks a lot for this helpful video!
@mainak_das
@mainak_das 3 жыл бұрын
THIS IS THE BEST TUTORIAL FOR FLASK CRUD APPLICATION
@techdevrpa
@techdevrpa 4 жыл бұрын
You are amazing. I met your channel when I was learning qt and now flask Thanks again dude
@geertvancompernolle2586
@geertvancompernolle2586 28 күн бұрын
First off, excellent intro of both Flask and CRUD principles. One question though: I'm trying to get the first input field of the modal Add or Edit box to be in focus. I know bootstrap doesn't have the autofocus attribute so I tried to add the HTML5 attribute "autofocus" in the input tag of my first input field like so: . However, that doesn't seem to work. What should be done to get the focus on the first input field of the modal boxes?
@hilaryeins1
@hilaryeins1 2 жыл бұрын
Thank you very much for these series of videos. I am new using flask, but I have learnt from your clear explanation.
@danielpaloma6435
@danielpaloma6435 4 жыл бұрын
Hello Parwiz, thank you so much for sharing your knowledge!! I enjoyed the tutorial and your explanation was clear. This encourage me to develop my own app and learn more about Flask. Regards.
@SaudBako
@SaudBako 4 жыл бұрын
Thank you so much. For the update method I used string query parameters to retrieve the employee id we are trying to edit. I made the form action go to "/update?id={{row.id}}", and used request.args['id'] to pull the ID from the url.
@amaramw
@amaramw 2 жыл бұрын
hi, I have a problem with my Edit button. the form cannot be displayed. and no error message either. do you know how to fix this problem? :')
@andressahelum5071
@andressahelum5071 2 жыл бұрын
Assistindo em 2021. Muito boa didática! Fiz algumas coisas diferentes do vídeo pois já tinha um conhecimento, mas aprendi demais sobre post e get dentro do flask. Estava precisando justamente disso. Muito obrigada!
@cathym9803
@cathym9803 4 жыл бұрын
Thank you so much!!! Excellent course from the beginning to the end. I would recommend this to anyone who is willing to learn. Thanks again.
@ParwizForogh
@ParwizForogh 4 жыл бұрын
You're very welcome!
@yousaymyname5174
@yousaymyname5174 4 жыл бұрын
A very good step by step lecture bro. Please a video how to add multiple form fields dynamically and bring them to the database (without modals adding multiple employees with the same submit button).
@JessicaHombal
@JessicaHombal 2 жыл бұрын
Thank you so much for this video. I did the same for banking system. It is working well.
@jangronewald3788
@jangronewald3788 2 жыл бұрын
Thank you very much for the great Tutorial! It rly helped me to get into Bootstrap and to make progress in my project. THX!
@austindonovan4162
@austindonovan4162 4 жыл бұрын
Thank you so much, this is exactly what I needed to break down how to do the update and delete functions in python. You are amazing!!
@ParwizForogh
@ParwizForogh 4 жыл бұрын
You're welcome!
@felixutomo6365
@felixutomo6365 4 жыл бұрын
@@ParwizForogh hello my friend why when i try to implement this app, this error comes up : TypeError: __init__() takes 1 positional argument but 3 were given, can u help me ?
@richardmilesagyemang1233
@richardmilesagyemang1233 Жыл бұрын
Thanks this video is very helpful. I was doing my with sequel query. Kind of stressful with the delete feature but I managed to fix after some long hours😂 Once again, thanks 🙏
@SAfanasyev
@SAfanasyev 3 жыл бұрын
Parwiz, thanks a lot for your time to put it together
@bhaswatiroy1433
@bhaswatiroy1433 2 жыл бұрын
Very nice explanation !! One of the best videos on Flask
@iwanguanteng5010
@iwanguanteng5010 6 ай бұрын
Did it use jsquery to transfer the data between the table and the modal?
@Kydenius
@Kydenius 2 жыл бұрын
How could I implement so I'd have a time + date function instead of ID on each line? Something that would be editable by the user?
@mariagitateresafebriani913
@mariagitateresafebriani913 3 жыл бұрын
thank you so much, your website really helped me on using modals and Flask Python
@mofiathamin4908
@mofiathamin4908 4 жыл бұрын
You are awsome make an e-commerce Web site with flask and mysql alckemy please in one Corse 😘
@ParwizForogh
@ParwizForogh 4 жыл бұрын
thanks i will do
@ezarasheed3868
@ezarasheed3868 2 жыл бұрын
Hi, is there a way to insert multiple rows/employees into a table at once using the form field, rather than just one at a time?
@peterprakash4758
@peterprakash4758 2 жыл бұрын
Anyone else facing issues at 25:20 - bootstrap models ? Kindly help
@paulbull5318
@paulbull5318 2 жыл бұрын
Great tutorial, just one thing i struggled with the well and jumbotron and couldn't get the header to work. It turns out that boostrap 4 uses cards and not wells.
@lightyagami7085
@lightyagami7085 2 жыл бұрын
Can you tell me how did you make jumbotron work.
@paulbull5318
@paulbull5318 2 жыл бұрын
@@lightyagami7085 i stuck with it but used a card instead of a well
@lightyagami7085
@lightyagami7085 2 жыл бұрын
@@paulbull5318 Okkk, I switched to bootstrap 4 and it is working for me now
@idk____idk6530
@idk____idk6530 3 жыл бұрын
Thanks Bro 😄 You help Me to Make My first Freelance Project ❤️🥺❤️❤️❤️❤️
@nowenator
@nowenator 4 жыл бұрын
Thank you, great tutorial, I have fully enjoyed! Couple of questions: When adding a new record line it goes to the bottom of the table. Can it go to the top row? Also, when updating a record (row) it goes to the bottom as well maintaining the ID number, that doesn't look right. Any thoughts please?
@SaudBako
@SaudBako 4 жыл бұрын
I used order_by in my index function. all_data = Data.query.order_by(Data.id).all()
@techdevrpa
@techdevrpa 4 жыл бұрын
@@SaudBako can you send me your discord for talking about flask?
@tonysjc
@tonysjc 4 жыл бұрын
Congratulations ! Very good.
@ParwizForogh
@ParwizForogh 4 жыл бұрын
Thank you very much!
@Sammycmp
@Sammycmp 2 жыл бұрын
You didn't include the fact that one would have to install a driver before it connects to MySQL database. Although I have been using postreSQL with PyCharm(Python) following your interesting tutorial trying to connect it with MySQl, I have been having many errors, like... return __import__("MySQLdb") ModuleNotFoundError: No module named 'MySQLdb' but when I installed psycopg2 for PostgreSQL immediately it worked. So what do I need to do for this application to connect to MySQL 8.0?
@cauanasz
@cauanasz Жыл бұрын
I have the same issue
@realnycmoments
@realnycmoments 4 жыл бұрын
good stuff. what do you recommend for deploying this app to a cloud server on production?
@bizindavyileonce2224
@bizindavyileonce2224 Жыл бұрын
RuntimeError: Working outside of application context. This typically means that you attempted to use functionality that needed the current application. To solve this, set up an application context with app.app_context(). See the documentation for more information.
@reenayadav8468
@reenayadav8468 Жыл бұрын
Use this code after you enter in python shell 1: from app import app, db 2: app.app_context().push() 3: db.create_all()
@riddhikpankhania325
@riddhikpankhania325 2 жыл бұрын
After Bootstrap Models chapter, after copying 'add employee' part, I am not able to open "Add New Employees" . I checked many times and did same from friend too, but still not getting. Pls help
@riyatiwari7178
@riyatiwari7178 2 жыл бұрын
Hi Riddhik, Was this issue solved when you were learning this course? Could you please spare a moment to help me with this? I also have been facing the same issue. Thank you in advance, though!
@saucecode5544
@saucecode5544 Жыл бұрын
Thanks for the tutorial, I Really learned a lot.
@JimSawa
@JimSawa Жыл бұрын
Thank you for the wonderful video. It is extremely helpful.
@prathmeshsananse7064
@prathmeshsananse7064 Жыл бұрын
getting this error while pip install Flask-SQLAlchemy : --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
@gsv202000
@gsv202000 3 жыл бұрын
Thank you so much Parwiz. Learned a lot
@Lukas-dt9km
@Lukas-dt9km 3 жыл бұрын
Muchas gracias Parwiz!!! Muy buen tutorial excelente!! saludos desde Argentina!!
@alexgora7530
@alexgora7530 7 ай бұрын
Hello, you said in video that we can copy "modal add employee" code in the description to this video, but I can't find the link?
@ola7540
@ola7540 10 ай бұрын
IF YOU HAVE ISSUE WITH MODAL: Your title block in index.html should look something like this: {% block title %} {% endblock %} not {% block title %} Home {% endblock %}
@remixowlz
@remixowlz 4 жыл бұрын
Very good explanation sir! But please change your editor to Visual Studio Code or make it white pycharm
@ParwizForogh
@ParwizForogh 4 жыл бұрын
Ok next time
@baopham981
@baopham981 4 жыл бұрын
Your tutorial is awesome! But can you all so make the add to cart function
@shilpak5561
@shilpak5561 3 жыл бұрын
Hello parwiz.....Please make a vedio on add search button to this application
@dasunsucharith2834
@dasunsucharith2834 2 жыл бұрын
This was very helpful! Thank you very much for this tutorial!!!
@rencooper
@rencooper 2 жыл бұрын
Where can we get the source code you mentioned?
@halderpradipta
@halderpradipta Жыл бұрын
thank you very much Sir
@devendrap9659
@devendrap9659 2 жыл бұрын
At the time of production level what is uri for sqlalchemy?
@leomaredcampos4941
@leomaredcampos4941 3 жыл бұрын
May, I ask you to create an inventory system using flask?
@malikjavadov366
@malikjavadov366 Жыл бұрын
really good , keep it coming!
@ChupoCro
@ChupoCro 3 жыл бұрын
header.html should *not* extend base.html because that results in index.html's source consisting of *two* HTML documents (doctype, html, head, body and *again* doctype, html, head, body). Every .html which extends base.html will have all the tags contained in base.html and if inside index.html (which extends base.html) is included header.html which would extend base.html too, then index.html cosists of twice base.html (browser > View page source). header.html should consist only of: ... and all {% %} blocks should be removed from that file.
@shilpak5561
@shilpak5561 3 жыл бұрын
Do you have a vedio about searching , and the task is done and undo the todos
@luchinilvp
@luchinilvp 3 жыл бұрын
Excelente vídeo, gracias por compartir tus conocimientos y tiempo. Saludos.
@rasikmohamed500
@rasikmohamed500 3 жыл бұрын
Simply Awesome✌️
@prashantpandit2031
@prashantpandit2031 3 жыл бұрын
Thank you Sir wonderful Teaching.
@twakskawt
@twakskawt 4 жыл бұрын
you da man Parwiz!
@joryaock
@joryaock 3 жыл бұрын
Is there a way have edit take you to another page instead of using a modal?
@priscilapower3781
@priscilapower3781 4 жыл бұрын
Really good material. Thanks for sharing and congratulations !
@ParwizForogh
@ParwizForogh 4 жыл бұрын
Thank you too!
@vijaypratap7429
@vijaypratap7429 3 жыл бұрын
Please make a method for search operation too
@ashokaddanki4230
@ashokaddanki4230 2 жыл бұрын
How can we implement filter and search functionalities for it
@bular8757
@bular8757 4 жыл бұрын
thanks so much it really helped me but i have one little issue, i use SQLite3 and if i try displaying my entries on the table, it displays the number of columns i have in the database but its blank.
@baizeedrony
@baizeedrony 2 жыл бұрын
How will I implement this with oracle database?
@didierarbeyjoaquigomez6646
@didierarbeyjoaquigomez6646 4 жыл бұрын
Very good video, greetings from Colombia, I want to ask for some help, what happens is that I have a registration form, I am using Flask and Mysql framework, I want to load the data from the database in a select that I have in the form Registration, could you help me on that, thank you very much.
@hartimat
@hartimat 3 жыл бұрын
Very useful. Thanks for posting!
@erangiwijerathne9654
@erangiwijerathne9654 4 жыл бұрын
Thank you very much. You saved my day.
@bricesifoua-ig9vy
@bricesifoua-ig9vy Жыл бұрын
Thanks. But where can we find js, font and css files ?
@maelevy957
@maelevy957 3 жыл бұрын
Hi. I have a question. I have an error it says 'ModuleNotFoundError: No module named 'MySQLdb' I tried to download pymysql but it didn't work. And also the delete and edit button is not working. Help hahaha
@donteo3105
@donteo3105 3 жыл бұрын
me having the problem… frustrating
@willianoliveirapires3413
@willianoliveirapires3413 Жыл бұрын
I exclude the button but it does not delete the data, in the terminal it displays the id in the get method, but it does not delete the wave
@taimoorneutron2940
@taimoorneutron2940 3 жыл бұрын
amazing tutorial appreciated, sir i need to get static files but in source code there are no
@waqasarqum
@waqasarqum 2 жыл бұрын
Awesome tutorial
@cydy80229
@cydy80229 2 жыл бұрын
Thank you! It's really useful!
@rudyr6759
@rudyr6759 2 жыл бұрын
how can I use sqlite3 instead of MySQL?
@rakshithkota
@rakshithkota Жыл бұрын
Can you please share the source code or the repo link. This tutorial was much helpful but as of Dec 2022 few settings need to be added especially on M1/M2 Macs...
@zaenalenal1721
@zaenalenal1721 3 жыл бұрын
Thank you so much. Good tutorial
@amanjoshi7259
@amanjoshi7259 4 жыл бұрын
27:34 i'm getting error when i refreshed the page.. it show me this ------ werkzeug.routing.BuildError: Could not build url for endpoint 'insert'. Did you mean 'index' instead?
@buildwithmacduff699
@buildwithmacduff699 4 жыл бұрын
I am getting the same thing.
@saikatjaman2004
@saikatjaman2004 4 жыл бұрын
@@buildwithmacduff699 anyone fixed this issue??
@SaudBako
@SaudBako 4 жыл бұрын
In app.py, make sure that your insert method's route is '/insert', and try again. Otherwise, go to index.html, then find the add modal (because this modal calls '/insert'), then find the form action inside it, then change "{{url_for('insert'}}" to "/insert" and make sure that "method" is set to "POST".
@ParwizForogh
@ParwizForogh 4 жыл бұрын
i have added the complete code in my blog codeloop.org/flask-crud-application-with-sqlalchemy/, i dont know why it was broken
@shyamrangasamys3165
@shyamrangasamys3165 4 жыл бұрын
thanks a lot.. very good teaching skills bro..
@ParwizForogh
@ParwizForogh 4 жыл бұрын
welcome
@gowthamns8228
@gowthamns8228 3 жыл бұрын
But every time when I am pressing edit or delete my page is reloading, How to use prevent default here and only disappear the content which I need to delete
@_itsmeKHawaR
@_itsmeKHawaR 3 жыл бұрын
its very help full
@souravkumarsingh1345
@souravkumarsingh1345 2 жыл бұрын
Explain how you link your local database with CRUD app ?
@omg432111
@omg432111 2 жыл бұрын
could u do a tutorial on dynamic field?
@kshitijgupta6175
@kshitijgupta6175 3 жыл бұрын
from where did he copy that href code for bootstrap and js at 12:13?
@brunoillipronti8641
@brunoillipronti8641 4 жыл бұрын
I already checked 3 of your videos and I didnt find any SELECT section in the CRUD :(
@ParwizForogh
@ParwizForogh 4 жыл бұрын
check i have the selecting method but not in the name of selecting i have used get()
@minaturabio2023
@minaturabio2023 2 жыл бұрын
how to make a search field and filter the data, it could be by phone number
@luismedinamachaca4814
@luismedinamachaca4814 4 жыл бұрын
very good
@bartoszcwiakala8916
@bartoszcwiakala8916 4 жыл бұрын
Great tutorial, thank you:)
@ParwizForogh
@ParwizForogh 4 жыл бұрын
You're very welcome!
@3ng279
@3ng279 4 жыл бұрын
sir . i have one problem in app.py on line 2 : from flask_sqlalchemy import SQLAlchemy (when i run code it error ) it have install package SQLAlchemy i install ready but it have error can you breakup my problem?
@sadowsky
@sadowsky 4 жыл бұрын
Same hereee :(
@ΓιώργοςΛειβαδιάς
@ΓιώργοςΛειβαδιάς 4 жыл бұрын
install this: pip install -U Flask-SQLAlchemy
@prateeksingh1141
@prateeksingh1141 4 жыл бұрын
d.create_all() is giving me error when i am running your code in my system, please help
@notyourpasta
@notyourpasta 4 жыл бұрын
Sahi baat hai.
@prateeksingh1141
@prateeksingh1141 4 жыл бұрын
@@notyourpasta haha 😂
@yoelsama3313
@yoelsama3313 3 жыл бұрын
Did you find the solution? I have the same error :/
@amaramw
@amaramw 2 жыл бұрын
hi, I have a problem with my Edit button. the form cannot be displayed. and no error message either. anyone know how to fix this problem? :')
@sumitluitel4212
@sumitluitel4212 2 жыл бұрын
Why use ['GET, 'POST'] methods when 'DELETE' (when creating deleting route) is available. I tried but i had an error and couldn't make it work. anyone?
@rawrrawr-ns7ck
@rawrrawr-ns7ck 4 жыл бұрын
Thank you! This is a great tutorial
@ParwizForogh
@ParwizForogh 4 жыл бұрын
You're very welcome!
@madhusudanj4557
@madhusudanj4557 4 жыл бұрын
I'm not able to delete data please help me ERROR: "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
@jamielevorne449
@jamielevorne449 2 жыл бұрын
thank you sir for this video. can i please get the source code?
@ritiksharma4322
@ritiksharma4322 Жыл бұрын
Which data base has been used here
@parandooshrahimi4238
@parandooshrahimi4238 3 жыл бұрын
Hi I make the base.html file , index.html When I run it ,it doesn't work ?
@oludedavid9706
@oludedavid9706 2 жыл бұрын
while trying to edit the next data apart from the first I get an error: sqlalchemy.exc.PendingRollbackError, aside from this error everything works fine, but I am in flask-admin baseview
@fassoyangce1075
@fassoyangce1075 3 жыл бұрын
Thank you so much for sharing your knowledge. However, I faced the problem while deleting the entire database, the ID doesn't restart from 0, but continues the counting from where it stopped. Can you please help me to fix that issue?
@zack-aihtizaz
@zack-aihtizaz 3 жыл бұрын
Id is auto_increment. So, when we delete the data, the id is not return to previous number. Even we delete all data, id is not going to zero (but it will continue to add from last id number)
@fassoyangce1075
@fassoyangce1075 3 жыл бұрын
@@zack-aihtizaz Thank you so much for the clear answer! :)
@amirahammami7799
@amirahammami7799 4 жыл бұрын
Great tutorial, thank you
@ParwizForogh
@ParwizForogh 4 жыл бұрын
Glad it was helpful!
@wahidahanuar7620
@wahidahanuar7620 3 жыл бұрын
thanks for the tuts. i failed to insert data, im using sqlite3. 😔
Python REST API Tutorial - Building a Flask REST API
1:14:01
Tech With Tim
Рет қаралды 772 М.
SQLAlchemy Turns Python Objects Into Database Entries
22:23
NeuralNine
Рет қаралды 176 М.
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 112 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 37 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 10 МЛН
How to Use Databases With SQLAlchemy  - Flask Fridays #8
25:36
Codemy.com
Рет қаралды 94 М.
Build your first REST API with Flask and PostgreSQL
27:42
teclado
Рет қаралды 68 М.
Flask Full Course: Build Stunning Web Apps Fast | Python Flask Tutorial
1:25:41
Python Flask with MySQL Database
22:51
The Programmer in You
Рет қаралды 152 М.
Build Flask App - PostgreSQL CRUD operations
19:57
Trinity software academy
Рет қаралды 12 М.
Using Databases With Flask - Python and Flask #8
24:16
Codemy.com
Рет қаралды 76 М.
How to build a React + FastAPI application (Full Stack Guide)
51:07
How to Deploy a Flask App to Render | Flask Render Deployment
11:04
Arpan Neupane
Рет қаралды 4,2 М.
iPad Domino has been in use for a long time. Let's see the effect
0:12
3D Fantasy Life
Рет қаралды 825 М.
iOS 18 в реальной жизни
14:42
HUDAKOV
Рет қаралды 235 М.