작성
·
244
0
C:\github\django_my_website (master -> origin)
(venv) λ python manage.py createsuperuser
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
Traceback (most recent call last):
File "C:\github\django_my_website\venv\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "C:\github\django_my_website\venv\lib\site-packages\django\db\backends\sqlite3\base.py", line 396, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: auth_user
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
답변 2
0
0
이 문제는 migration을 하지 않으셨기 때문에 발생하는 문제입니다.
에러 메세지에서도 Run 'python manage.py migrate' to apply them. 라고 하고 있네요.
터미널(CMDer)에서 python manage.py migrate 이라고 입력한 후 다시 시도해보세요.