Flask CRUD Application With SQLAlchemy
Check our website:
Please Subscribe The Channel, This is our ninth video in python flask creating a crud web application in this video we are going to cover how you can delete data from mysql database
pip install flask
pip install flask-mysql
Download The Source Code From Github
Download Wamp Server
Download Pycharm IDE Comunity Edition
Download Python 3.6
Dow You Want Learn More In Python Than Watch These Playlists
Tkinter Application Development Playlist
Complete Video Tutorial For PyQt5 Application Development
Pyglet Tutorial For Multimedia Applications And Game Development
Python Opengl Programming With Pyopengl
Python For Data Science Playlist
Pyqt5 And Qt Designer Making Rich Text Editor
Developign QtQuick C++ Applications
Nguồn: https://benjaminjcohen.com/
Xem thêm bài viết khác: https://benjaminjcohen.com/cong-nghe/
i dont understand how the id_data is passed….plz reply
good stuff man..thanks! Some of your code differs from your git repo. for example this part:
cur.execute("DELETE FROM students WHERE id=%s", (id_data,))
(id_data,) has a comma at the end on your git repo, but somehow on your video it works without the comma. i had to use the comma to be able to delete records. if not, i got error:
File "/home/rgm/proyectos/flask-crud/application.py", line 58, in delete
cur.execute("DELETE FROM students WHERE id = %s", (id_data))
File "/home/rgm/.local/lib/python3.6/site-packages/MySQLdb/cursors.py", line 206, in execute
raise ProgrammingError(str(m))
keep up the good work man!
Hi, Thank you for your videos, How do i deploy this application on Xampp or wamp?
you've done made action add, edit and delete. how to make action view details for each student list ?
thanks so much!! i love this tutorial, give my like bro!
Hello, is it possible to add pagination to this crud ?, that the table shows a maximum of data and that you can also search for records?,
Regards.
You are one the best teacher. Can you please make one more video on how to save image and other files like doc,video into database using flask?
if delete methods not working, try this
…
query = "DELETE FROM students where id =" + id_data
cur.execute(query)
…
Great tutorials…had to Google a few items here and there, but got everything working except for this module. I have been through your source code and mine and cannot seem to get my Delete button to work. I have gone into my MySQL Workspace and tested the DELETE statement and works no problem. Any thing you know of in regards to syntax? Is there not a "if request.method == 'GET':" statement required on this one? Happy to post my code for index.html and for App.py