Can you help me solve this

25 views
Skip to first unread message

Sameer Gedam

unread,
May 20, 2021, 9:03:00 AM5/20/21
to Django users
OperationalError at /admin/products/product/add/no such table: main.auth_user__oldRequest Method:
POSTRequest URL:
http://127.0.0.1:8000/admin/products/product/add/Django Version:
2.0.7Exception Type:
OperationalErrorException Value:
no such table: main.auth_user__oldException Location:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 303Python Executable:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\Scripts\python.exePython Version:
3.9.5Python Path:
['C:\\Users\\user\\Dev\\trydjango\\src', 'c:\\python39\\python39.zip', 'c:\\python39\\DLLs', 'c:\\python39\\lib', 'c:\\python39', 'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR', 'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR\\lib\\site-packages']Server time:
Wed, 19 May 2021 16:51:46 +0000

Sharif Mehedi

unread,
May 20, 2021, 9:10:57 AM5/20/21
to Django users
I do not see anything solvable there. Maybe soak it into water! :P .
Maybe, it will help if you can provide us with a clue to whatever you are trying to do and the nature of the problem you are facing in trying in doing.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f4b616e3-be6b-49d9-8d62-577e32d45121n%40googlegroups.com.

Eric 247ERICPOINTCOM

unread,
May 21, 2021, 4:39:32 PM5/21/21
to django...@googlegroups.com
Hi Sameer,

Just make sure you have run python manage.py migrate after adjusting your models.py. I ran into that error and solved it by migration.

Kind Regards


Eric Bawakuno | Computer Engineer | +27795639700+27 815152254 | eri...@gmail.com  | Address: 29 Rochester Road, Observatory | Cape Town, South Africa | 7925
f


Mehdi Ismail

unread,
May 22, 2021, 6:40:30 PM5/22/21
to Django users
Potentially cracked the migration at some stage. 
you might need to manually fix it, or fix your migration files (preferred). 

This would require for me to take a look at your database tables/structures and your current status of migrations/code; if you need a pair of eyes,  you could email me back, to assist you over lets' say Anydesk or so.. 
Reply all
Reply to author
Forward
0 new messages