Django Model and migration
we need to download sqlite and move it to C :/folder
Open sqlite and drag and drop our db from our pycharm to sqlite
Let's open our terminal
That means by default Django doesn't know about the products model
Let's fix that.let's see the installed apps in the setting of pyshop
We will verify this path
Now let's go back to settings files, and post that information
Now we see what we got in settings, write down the previous information
Now let's check the new model created
But our sqlite database still empty..we need to generate values for that..let's finish our migration
We see that now the database is populated
Now we see the values under product app
If we run it again
Django Model
Reviewed by ohhhvictor
on
May 31, 2019
Rating:
Reviewed by ohhhvictor
on
May 31, 2019
Rating:

















No comments: