OperationalError, no such column. Django

后端 未结 22 1878
情话喂你
情话喂你 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:35

    Step 1: Delete the db.sqlite3 file.

    Step 2 : $ python manage.py migrate

    Step 3 : $ python manage.py makemigrations

    Step 4: Create the super user using $ python manage.py createsuperuser

    new db.sqlite3 will generates automatically

提交回复
热议问题