I want to deploy my django project to the production environments, and associated it with an new empty database, and I did as follows :
but only auth related tables created ( like auth_user
, auth_group
... ), no databases tables created for my Apps
How should I do for this situation to move to the new database for my project?
- Deleted the migrations folder under my App
This was your mistake, you deleted the migrations - including the initial migrations. So when you go to makemigrations
you haven't got the initial migration available.
So you need to run makemigrations <app_name>
to at least get the initial migration.
If you were to do this again, don't delete the migrations, just change the database settings and then migrate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With