Model of cart for online shop

Hello, I’m coding backend for online-shop. But in my project some problems. When I’m trying to save cart by session in db it doesn’t happens. When I’m trying to write:

PS C:\Users\user\Desktop\django_shop> python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions, shop
Running migrations:
No migrations to apply.
PS C:\Users\user\Desktop\django_shop> python manage.py makemigrations
No changes detected

But model of my cart doesn’t work, how can I fix this?

Here is a code of my site:

@LeonardoBigShot you don’t have a Cart Model you have a Cart Class that is not a instance of django.models.Model, so you can’t migrate that.

Okey, what should I do to add cart of users in database?

You should create a Django Model, I encourage you to follow the next tutorials, after them you could understand better what are you doing:

https://docs.djangoproject.com/en/4.0/intro/tutorial01/