from django.contrib.auth.models import User from django.db import models from django.urls import reverse # Create your models here.
class bank(models.Model): name = models.CharField(max_length=255) DOB = models.DateField() age = models.IntegerField() gender = models.CharField(max_length=10) phone_no = models.CharField(max_length=10) mail_id = models.EmailField(max_length=25) address = models.CharField(max_length=255) district = models.CharField(max_length=100) branch = models.CharField(max_length=100) account_type = models.CharField(max_length=100) # materials_provided = models.CharField(max_length=100) def __str__(self): return self.name This is my model.py page. And i can see this table and all fields in my database. But while running show me the operational error that no column named DOB. How can i fix this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6c189bb5-4e00-498d-b184-300d97ba4a0dn%40googlegroups.com.