Django 500 Internal Server Error - ImproperlyConfigured: Error loading MySQLdb module:

后端 未结 2 372
悲哀的现实
悲哀的现实 2021-01-24 11:38

Im new to using MySQL in general and as a database for Django. I have followed a number of different tutorials and the documentation but keep getting a 500 Internal Serv

2条回答
  •  无人及你
    2021-01-24 11:58

    In the interest of helping others who may come to this post with the same error:

    I was receiving the same error, but my MySQL-python version was the same as the expected: 1.2.5. The problem was that I had the MySQLdb folder symlinked into my project's root folder. By moving the symlinked folder into the folder that holds my Django settings I was able to fix the issue.

提交回复
热议问题