Django populate() isn't reentrant

后端 未结 6 1955
一生所求
一生所求 2020-11-29 07:54

I keep getting this when I try to load my Django application on production . I tried all the stackoverflow answers but nothing has fixed it. Any other ideas. (I\'m usin

6条回答
  •  没有蜡笔的小新
    2020-11-29 08:33

    For me this error was caused, because I hadn't correctly split my INSTALLED_APPS for local and production. Meaning in local I was using django-cors-headers and in production I was not. But I accidentally had left django-cors-headers even though I removed it from my production requirements.txt. After delete cors-headers from the installed apps in production the error went away.

提交回复
热议问题