[Django]-Python-social-auth with django errors with "no such table: app_customuser"

2👍

I’ve managed to make this work by specifying app within makemigrations command. Please try:

(env)$ python manage.py makemigrations app

Migrations for 'app':
    0001_initial.py:
        - Create model CustomUser

(env)$ python manage.py migrate

Operations to perform:
    Apply all migrations: app, admin, sites, default, sessions, auth, contenttypes
Running migrations:
    Rendering model states... DONE
    Applying app.0001_initial... OK
👤AlexMe

1👍

For your new app you need to migrate new models.

Try python manage.py migrate app and then python manage.py makemigrations app

This should work.

0👍

It seems that you created class CustomUser(models.Model) in example/app/models.py and haven’t migrated your changes.
So if that is so you need to run python manage.py makemigrations and then python manage.py migrate

Leave a comment