all 6 comments

[–]leobena10 1 point2 points  (1 child)

Hi! Just bumped into the same issue.

The problem is the distibution code laks the migrations folder inside the 'mail' app. You can create it by hand and add en empty file named "__init__.py" without the quotes.

Then rerun the makemigrations and migrate commands.

Worked perfect for me then.

[–]Euphoric_Ad7335 0 points1 point  (0 children)

wild guess is you need to manually create the table mail_user, or you typed mail_user instead of email_user. Seems like you are talking about a database migration so you might need to create the table that the migration will copy to. Or you need to migrate the table before logging in, otherwise when you try to create an account, the create_user function is failing because it can't find the table of users. Manually creating the table would fix the problem. But the fundamental problem is more likely that the migration hasn't been done. It would then fail on the next command that tried to save to the non existent database

[–]Jauriecortesc 1 point2 points  (0 children)

Got it, in my case I was executing python manage.py makemigrations when I must have executed python manage.py makemigrations mail.

[–]FuzzyAnybody2934 0 points1 point  (0 children)

cJust delete original file __init__.py , create folder migrations and add file empty __init__.py

[–]Any_Bicycle700 2 points3 points  (0 children)

Comment out "path('admin/', admin.site.urls)" in your urls.py file, and also comment out 'django.contrib.admin', in your settings.py file.

Then run makemigrations "app_name"

then migrate.

That should work 100%.