MySQLdb error when running python server on MacOSX10.6

前端 未结 2 1216
甜味超标
甜味超标 2021-02-10 07:12

Running my server (python manage.py runserver) yielded this error:

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module na

2条回答
  •  余生分开走
    2021-02-10 07:46

    Sounds like your just missing the mysql-python dependancy for mysql and Django. Don't know how you installed Django though. Use pip or easy_install to install it.

    pip install mysql-python
    

    For Django it is recommended to use PostgreSQL though, for development purposes setting up a sqlite database is much, much easier.

提交回复
热议问题