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.

I agree to receive announcements of interest about this Blog.

Let's register the app and run the migrations.

- Andrés Cruz

En español

This material is part of my complete course and book; You can purchase them from the books and/or courses section, Curso y Libro desarrollo web con Django 5 y Python 3 + integración con Vue 3, Bootstrap y Alpine.js.

) )