开发者

Adding database module

开发者 https://www.devze.com 2023-01-19 17:43 出处:网络
I am new to django I would like to s开发者_Python百科tart a project but when i run it i get this error

I am new to django

I would like to s开发者_Python百科tart a project but when i run it i get this error

Error loading MySQLdb module

How do i add the MYSQL module or any other module for that matter


Install it on your system, using either a native installer or package, via pip or easy_install, or by running setup.py in the tarball.


you should install a mysql client and a mysql python client for that client. So you should execute following commands(For Debian systems)

apt-get install mysql-client
apt-get install python-mysqldb
0

精彩评论

暂无评论...
验证码 换一张
取 消