pycharm报错django.core.exceptions.ImproperlyConfigured: Requested setting CACHES

配置编辑运行环境

打开软件上面运行的程序,点击Edit Configuration...,对Environment variables那一项进行添加,其中name添加DJANGO_SETTINGS_MODULE,value栏添加"项目名.settings",然后运行即可,详见下图

猜你喜欢

转载自blog.csdn.net/weixin_41996632/article/details/88836004