django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but settings are not configured. You must either define the environment varia

前端 未结 8 1858
遇见更好的自我
遇见更好的自我 2020-12-28 14:46

I\'ve tried everything that I could find to fix this issue, and I\'m starting to tear my hair out a little. I\'m getting this error:

django.core.exceptions.I         


        
8条回答
  •  灰色年华
    2020-12-28 15:16

    If you are using PyCharm Pro, you can either test your app by action 'Run Django Console...'. After you click 'test', it will prompt you for the app you want to test.

    enter image description here

    or

    Create a Django test in Run/Debug configuration.

    enter image description here

提交回复
热议问题