﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29309	Recommended MySQL Setup Does Not Work Properly	ReStartercc	nobody	"Python 3.6.1
Django 2.0
Mac OS 10.13.3

Following the instruction given in https://docs.djangoproject.com/en/2.0/ref/databases/#mysql-notes, installed pymysql with pip and then modified the settings.py to set up the adaptor according to https://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html, the url given by the official document.

Then when executing {{{python3 manage.py makemigrations}}} error appears which displays {{{ImportError: No module named 'MySQLdb}}}. It is likely that django still uses MySQLdb, which is not supported by python3, as default in the release.

The fix that works for me would be adding following code in the {{{__init__.py}}} of the site to use pymysql to replace mysqldb.

{{{
import pymysql
pymysql.install_as_MySQLdb()
}}}
"	Cleanup/optimization	closed	Documentation	2.0	Normal	needsinfo	Database Setup		Unreviewed	0	0	0	0	0	0
