<filename>ecom/carts/admin.py
from django.contrib import admin

# Register your models here.
from .models import Cart,CartItem


admin.site.register(Cart)
admin.site.register(CartItem)

<filename>ecom/carts/admin.py
from django.contrib import admin

# Register your models here.
from .models import Cart,CartItem


admin.site.register(Cart)
admin.site.register(CartItem)

# Register your models here.