dimanche 28 juin 2015

django server runerror about mysql

first try django ,when I do './manage.py runserver' it shows:

  File "/Library/Python/2.7/site-packages/django/db/backends/mysql/base.py", line 27, in <module>
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/Python/2.7/site-packages/MySQL_python-http://ift.tt/137FXWA, 2): Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.18.dylib
  Referenced from: /Library/Python/2.7/site-packages/MySQL_python-http://ift.tt/137FXWA
  Reason: image not found

I have set default database of mysql and I installed mysql-Python dev.No idea what's going on.Somebody help...

Aucun commentaire:

Enregistrer un commentaire