pip install pymysql
Then, edit the __init__.py file in your project origin dir(the same as settings.py)
add:
import pymysql
pymysql.install_as_MySQLdb()
More Related Contents:
- Mac OS X – EnvironmentError: mysql_config not found
- Setting Django up to use MySQL
- How to replace Django’s primary key with a different integer that is unique for that table
- MySQL “incorrect string value” error when save unicode string in Django
- Install mysql-python (Windows)
- How to use MySQLdb with Python and Django in OSX 10.6?
- Django : Table doesn’t exist
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- How to run Django’s test database only in memory?
- How to filter (or replace) unicode characters that would take more than 3 bytes in UTF-8?
- MySQL Improperly Configured Reason: unsafe use of relative path
- Using Django database layer outside of Django?
- How to move a model between two Django apps (Django 1.7)
- Can one use the Django database layer outside of Django?
- InterfaceError (0, ”)
- How do i cast char to integer while querying in django ORM?
- How to make an Inner Join in django?
- Simple Subquery with OuterRef
- Using .aggregate() on a value introduced using .extra(select={…}) in a Django Query?
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
- Install mysqlclient for Django Python on Mac OS X Sierra
- Django + MySQL on Mac OS 10.6.2 Snow Leopard
- Single Django model, multiple tables?
- What is PyMySQL and how does it differ from MySQLdb? Can it affect Django deployment?
- How can I build multiple submit buttons django form?
- Default filter in Django admin
- Creating a list of dictionaries with same keys? [duplicate]
- Django gives Bad Request (400) when DEBUG = False
- Django: Calculate the Sum of the column values through query
- Django filter JSONField list of dicts