OperationalError, no such column. Django

后端 未结 22 1874
情话喂你
情话喂你 2020-12-24 00:45

I am very new to django and was able to finish the tutorial on djangoproject.com without any errors. I am now going through the Django REST framework tutorial found at http:

22条回答
  •  臣服心动
    2020-12-24 01:38

    I see we have the same problem here, I have the same error. I want to write this for the future user who will experience the same error. After making changes to your class Snippet model like @Burhan Khalid said, you must migrate tables:

    python manage.py makemigrations snippets
    python manage.py migrate
    

    And that should resolve the error. Enjoy.

提交回复
热议问题