F
F
Fedor unknown2019-04-24 21:54:10
Django
Fedor unknown, 2019-04-24 21:54:10

How to solve superuser creation problem in django?

When trying to create a superuser, it throws an error:
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 "/home/omur/Desktop/dj/venv/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self .cursor.execute(sql, params)
File "/home/omur/Desktop/dj/venv/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 383, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: auth_user

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2019-04-25
@turdubekov

Well, do
it before that - it clearly says to you in the error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question