티스토리 뷰

In my case, Django 1.10 ver


change from sqlite3 to mysql(RDS), get error.



" django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb "



- first read django doc (https://docs.djangoproject.com/en/1.10/ref/databases/#mysql-db-api-drivers)




solve: 


$ pip install mysqlclient 


(if error)

$ sudo apt-get install python-dev libmysqllient-dev

$ pip install mysqlclient




저작자 표시 비영리 변경 금지
신고
Creative Commons License
Creative Commons License
댓글
댓글쓰기 폼
공지사항
최근에 달린 댓글
Total
10,405
Today
58
Yesterday
84
링크
«   2017/08   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
글 보관함