Re: table bank_app_bank has no column named DOB

2023-08-19 Thread Joe Reitman
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

Error while showing detailed post

2023-08-19 Thread Dhiraj Kumar
Hi new in Django, I want to display details post to the template but facing issue while trying to fetch post by id on the click of Continue Reading , Views.py def show(request, id): print(id) try: showPost = post.objects.get(id=id) # Assuming your model is named 'post' except

Re: table bank_app_bank has no column named DOB

2023-08-19 Thread ivan harold
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

Re: table bank_app_bank has no column named DOB

2023-08-19 Thread RANGA BHARATH JINKA
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