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
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.
- [Django]-Email confirmations are not stored Django allauth
- [Django]-Serializer field validation and how to check if value exist?
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
- [Django]-Is it possible to run ubuntu terminal commands using DJango
- [Django]-Generating a django HTML URL from a javascript function
Source:stackexchange.com