Unable to view the table in Django admin panel

Okay so i am new to django. I created a superuser and then i created a 'Customer' model as shown below in models.py inside my app called 'products' Now , ran the migration command i.e python manage.py makemigrations followed by python manage.py migrate. After i log into the admin panel i see the 'Customers table and as soon as i click on it i get this error attached in the screenshot.

Note: A weird thing i noticed , i did not get the migrations directory even after i ran the migration command

The Customer model i defined: `from django.db import models

Create your models here.

class Customer(models.Model):
    GENDER=(
        ('Male','Male'),
        ('Female','Female')
    )
    name=models.CharField(max_length=200)
    email=models.EmailField(max_length=200)
    Mobile_Number=models.CharField(max_length=100)
    Gender=models.CharField(max_length=200,choices=GENDER)

admin.py:

from django.contrib import admin

# Register your models here.

from .models import Customer
admin.site.register(Customer)

The error that i am getting:

enter image description here

Back to Top