C
C
CeBePHblY2016-04-28 15:25:14
MySQL
CeBePHblY, 2016-04-28 15:25:14

With what to work on Python 3 with MySQL?

The task is simple - to work with MySQL - connect, send requests, parse responses ... With what can you do this? Ease of operation is a priority.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-04-28
@CeBePHblY

pip install pymysql
in my_projects/__init__.py :

import pymysql
pymysql.install_as_MySQLdb()

database connection :
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'db_name,
'USER': 'root',
'PASSWORD': '123',
}
}

U
un1t, 2016-04-28
@un1t

mysqlclient

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question