Opened 6 years ago

Closed 6 years ago

#29902 closed Bug (invalid)

Django 2.* - Admin - relation "auth_user" does not exist

Reported by: Kyle Raney Owned by: nobody
Component: contrib.admin Version: 2.1
Severity: Normal Keywords: admin
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I can't create an admin user and login without getting this error message:

relation "auth_user" does not exist
LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...

I have tried with version 2.0 and 2.1 with the same error. There is nothing unique about my project. I do the following:

Create the project > keep sqlite as default values > createsuperuser > then try to login

I have tried using postgresql and got the same error.

Other info:
macOS Mojave 10.14 * I suspect this may be the issue
Python 3.7

Let me know if you need the full traceback.

Change History (1)

comment:1 by Tim Graham, 6 years ago

Resolution: invalid
Status: newclosed

It sounds like you didn't run manage.py migrate to create the database tables. In the future, please use TicketClosingReasons/UseSupportChannels to find places to get help. This ticket tracker is used to report confirmed bugs rather than for getting help.

Note: See TracTickets for help on using tickets.
Back to Top