Registering Application and Migrations - Django Online Store - 05
Once the models have been created in Django, we will register the application here, remembering that we entered the settings file so that it is taken into account by the application:
mystore\mystore\settings.py
INSTALLED_APPS = [
***
'elements'
]
And we place the application now we execute the migration:
$ python manage.py makemigrations
The three perfect models were created and now or the three migrations were created we are going to replicate these migrations to the database and here we have it:
$ python manage.py migrate
Remember that here we have the database And we could already see the element category and the type category, so we already have them ready to start working.