jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.49k stars 205 forks source link

MySQL backend doesn't work on python 3 #53

Closed igorcamp closed 8 years ago

igorcamp commented 9 years ago

'django.db.backends.mysql' uses MySQL-python lib, but this lib does not support python 3.

You could use another backend when python 3 is used. The mysql-connector-python lib already comes with a django backend: 'mysql.connector.django'. It is a good alternative.

kennethreitz commented 8 years ago

The django.db.backends.mysql backend now automatically uses mysqlclient, which supports both Python 2 and 3.

https://github.com/django/django/blob/master/django/db/backends/mysql/base.py#L4