Django model “doesn't declare an explicit app_label”

后端 未结 28 1910
無奈伤痛
無奈伤痛 2020-11-27 15:38

I\'m at wit\'s end. After a dozen hours of troubleshooting, probably more, I thought I was finally in business, but then I got:

Model class django.contrib.co         


        
28条回答
  •  萌比男神i
    2020-11-27 16:10

    in my case I was able to find a fix and by looking at the everyone else's code it may be the same issue.. I simply just had to add 'django.contrib.sites' to the list of installed apps in the settings.py file.

    hope this helps someone. this is my first contribution to the coding community

提交回复
热议问题