• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

blog 관련해서 createsuper 처리부분에서 아래와 같은 에러가 발생합니다.

20.02.12 14:05 작성 조회수 186

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 이라고 입력한 후 다시 시도해보세요.