is 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 ??
>>
>>
>> python manage.py makemigrations
>> python manage.py migrate
>>
>>
>>
>> On 21 Aug 20
t;
> python manage.py makemigrations
> 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 c
ug 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:
>> POST
>> Request URL:
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:
at /add/ table bank_app_bank has no column named dob
> Request Method:
> POST
> Request URL:
> http://127.0.0.1:8000/add/
> Django Version:
> 4.2
> Exception Type:
> OperationalError
> Exception Value:
> table bank_app_bank has no column named dob
> Exception Lo
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:
POST
Request URL:
http://127.0.0.1:8000/add/
Django Version:
4.2
Exception Type:
OperationalError
Exception Value
Hi,
Try changing DOB to small letters dob and run the migrations again.
All the best 👍
Thanks and Regards
J. Ranga Bharath
Cell: 9110334114
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 r
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 meenu loranz wrote:
> from django.contrib.auth.models import User
> from django.db import models
> from django.urls
You can not use all caps as a field name. Some other restrictions are:
- A field name cannot be a Python reserved word.
- A field name cannot contain more than one underscore in a row.
- A field name cannot start with an underscore.
On Friday, August 18, 2023 at 2:05:57 PM UTC-5 meenu
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_
10 matches
Mail list logo