wsvincent/djangoforprofessionals

Chp3 Books: Accounts migration failing

Closed this issue · 1 comments

I am using Version 3.1 and I am a novice.

I am working through Chapter 3 and the books example. On Page 48, The makemigrations accounts works. I am attempting the second migrate but it fails. Thinking it was me, I started over and walked through the steps as outlined in the book and did not jump around and used a separate directory

Screen Shot 2021-02-21 at 3 38 52 PM

This is preventing me from creating the superuser:
Screen Shot 2021-02-21 at 3 40 32 PM

I can connect into Docker Container for the Database so I know the container appears good.
Screen Shot 2021-02-21 at 3 42 02 PM

When I go the Admin on the server, I get the login screen.

Thanks,

Russ

The way I got it to work was commenting out the 'admin' app from the INSTALL_APP in the settings.py and 'admin' from urls.py. Next, I ran the makemigrations and migrate commands with no errors. I remove the comments and I was to create the superuser and login.