How to correct this error: “'Adminsite' object has no attribute 'root'”

后端 未结 2 447
迷失自我
迷失自我 2021-02-01 15:56

The full error message is:

AttributeError on running Django app on apache as localhost -- \'Adminsite\' object has no attribute \'root\'

2条回答
  •  清歌不尽
    2021-02-01 16:46

    Another possible issue here, which I encountered, is that admin has not been properly configured in the settings.py file. Anyone having this issue would want to check that their installed apps include django.contrib.admin. Reference https://docs.djangoproject.com/en/1.3/faq/admin/ for details.

提交回复
热议问题