How do I create a superuser account in Django 1.9.6

前端 未结 7 2076
广开言路
广开言路 2021-02-05 02:18

I am reading a book (\"Learning Django Web Development\" by Sanjeev Jaiswal and Ratan Kumar) on Django, but the book is based on an earlier version of Django (prior to version 1

7条回答
  •  野的像风
    2021-02-05 03:09

    I think you want to run these commands:

    python manage.py makemigrations creates migration files based on your models

    python manage.py migrate will create the tables in your db based on the migration files created

    (see docs for more details on database migrations)

    python manage.py createsuperuser will create a superuser for your application in the database (docs)

提交回复
热议问题