![]() MySQL If you use Windows you can use WAMP or XAMPP, if you are using Linux XAMPP is a good choice. Depending on the transaction isolation strategy of MySQL it may never become visible to other programs or transactions. ![]() Get_foto = cursor. Steps Create file upload form Upload the CSV using Flask Parse CSV file data Connect to the database Insert rows into a specific table in the database Stack we will use: Flask A Python Minimal (Micro) web frameworks. Getting the picture("foto") from the db def get_foto(id): ![]() Quickstart First, you may need to install some dependencies for mysqlclient if you dont already have them, see here. Inserir_conta_no_banco = cursor.execute(""" INSERT INTO conta (email, password, coach, player, picture) VALUES (%s, %s, %s, %s, %s)""", (email, password, coach, player, picture))įrom now on I don't know if any of these is working Project description Flask-MySQLdb Flask-MySQLdb provides MySQL connection for Flask. Insert a record in the 'customers' table: import nnector mydb. When the account is created the picture is stored in the DB (it's working) `def inserir_conta_jogador(email, password, coach, player): To fill a table in MySQL, use the 'INSERT INTO' statement. Storing the picture in a variable from matplotlib import image as imgįoto_perfil = img.imread("website\static\img\") I'm working on a project with some friends and we're doing a basketball championship website were anybody can create an account, that account will have a default image when created, but my problem is how to display that image on the page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |