📌  相关文章
📜  django.db.utils.operationalerror:(2003,“可以 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:51.297000             🧑  作者: Mango

代码示例1
as asked before if you are running your website on a remote server, you should make sure that you add the ip address to the ALLOWED_HOSTS-list otherwise you might get another error.

Solutions could be:

Did you try to uninstall gunicorn? gunicorn is used later for the deployment of the website so it should actually be fine, as you are starting a development server with python manage.py runserver
As nginx is also used to ship your website into production if would assume that this should note be related directly to the database. you might want to check if nginx is running with service nginx status if this allocates the localhost port django can maybe not access the mysql database
Did you check the port config of your mysql database?