table bank_app_bank has no column named DOB

2023-08-18 Thread meenu loranz
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_

Re: table bank_app_bank has no column named DOB

2023-08-21 Thread meenu loranz
> On Sat, 19 Aug 2023, 9:18 pm ivan harold, wrote: > >> >> https://stackoverflow.com/questions/68269165/why-django-is-not-detecting-my-table-column >> >> Try reading this article, it may help you. >> >> On Saturday, August 19, 2023 at 3:05:57 AM UTC+8 m

Re: table bank_app_bank has no column named DOB

2023-08-22 Thread meenu loranz
grations > python manage.py migrate > > > > On 21 Aug 2023, at 09:46, meenu loranz wrote: > > Thank you for your response...i changed DOB to dob...but still showing me > the error... > OperationalError at /add/ table bank_app_bank has no column named dob > Request Method:

Re: table bank_app_bank has no column named DOB

2023-08-24 Thread meenu loranz
.save() messages.info(request, 'Bank added successfully') return redirect('home') return render(request,'add.html') This is my views.py page. On Tuesday, August 22, 2023 at 12:49:39 AM UTC+5:30 Mike Simkins wrote: > Did you regenerate and rerun the migrations ?? > &g