no such table

2022-06-23 Thread Hugh Frost
Good evening all, My project was based on django 3.2, I have an issue with migrations, my project was already in live same time I try to create two new tables after that i'm adding the live database file in local file but that shows Error : no such table i don't know how to fix this, anyone

ERROR : no such table

2022-06-23 Thread Hugh Frost
Good evening all, I'm working on django 3.2 project, i have one issue with migrations. my project already in live. same time I'm adding two new tables in same file but that was in local, now i'm trying to add live database in my modified local file but tables created when i migrate but databa

How to fix this error

2021-05-24 Thread Hugh Frost
Request Method: POST Request URL: http://127.0.0.1:8000/profile/ Django Version: 3.1.7 Python Version: 3.9.2 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles

IntegrityError at /userapp/detail/ NOT NULL constraint failed: userapp_profile.babyinfo_id

2021-05-31 Thread Hugh Frost
Hii all, I hv been struck in last 4 days please fix this error , i'm new to django -- 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...@googl

Re: IntegrityError at /userapp/detail/ NOT NULL constraint failed: userapp_profile.babyinfo_id

2021-05-31 Thread Hugh Frost
Hey bro, i try to combine two model forms in single view django views but i dnt knw how to work with this please check my below code and help me! On Monday, May 31, 2021 at 11:15:29 PM UTC+5:30 Kasper Laudrup wrote: > On 31/05/2021 18.46, Hugh Frost wrote: > > Hii all, > > I hv

Hi all, i'm using 2 modelforms in one view function one as foreign key but when i submit babyform2 not storing in database. anyone please fix this

2021-06-01 Thread Hugh Frost
def detail(request): if request.method == 'POST': baby_form1 = BabyForm1(data=request.POST) baby_form2 = BabyForm2(data=request.POST) if baby_form1.is_valid() and baby_form2.is_valid(): baby_form1.save() print(baby_form1) baby_form2.b

how to set lead user flag

2021-06-01 Thread Hugh Frost
How can i set lead user flag that can give some editable permisions in stored data in html page and i want to redirect when the user is second time login -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread Hugh Frost
please check below view Function -- 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 vi