django admin error - Unknown column 'django_content_type.name' in 'field list'

后端 未结 7 956
广开言路
广开言路 2021-01-17 15:35

My django project had a working admin page, but all of the sudden I started receiving: \"Unknown column \'django_content_type.name\' in \'field list\'\" whenev

7条回答
  •  悲哀的现实
    2021-01-17 16:20

    Caused by two different versions of Django being installed. I had the error when I had Django1.7 installed locally and 1.8 in a virtualenv.

    pip uninstall django
    

    for the local version, and then restarting manage.py runserver from within the virtualenv fixed the error for me.

提交回复
热议问题