OperationalError at /finance/2/1776/delete_transaction/
no such table: main.finance_transactions
/srv/http/myserver/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py in execute
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
return Database.Cursor.execute(self, query, params)
▼ Local vars
Variable Value
params
(1776,)
query
'DELETE FROM "finance_transaction" WHERE "finance_transaction"."id" IN (?)'
self
<django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0xb55cf608>
Hi Michel,
The error states that there is no such table finance_transactions with an s on the end. Maybe you could show us your view code, but that would be the place that I would start at.
--
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 post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/dbdeafaf-1d6c-434e-8ac6-97a57a555e9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8195eef3c605409a8a5d7711ad234ba9%40ISS1.ISS.LOCAL.
Hi Michel,
I’ve reviewed your code and everything looks like it should be working fine. Have you tried using a fresh, blank database? Could it be an issue with your settings?
I can’t imagine what else it could be at the moment.
Thanks,
Matthew
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK%3D8-REYHuLAMgAMR0RAATcZ-auJQrbHb_TExyNztna1EYTEqA%40mail.gmail.com.
--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20181008152200.GD18928%40koniiiik.org.
It almost seems like your database is corrupt. Did you run migrations before running the server?
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK%3D8-RG3qHad5rcWTZ0kvduyypcFyWfM67%3D8V7JA2FJ3OOyVRQ%40mail.gmail.com.
You're probably right though, if the current database has issues but not the new one, the old one might have somehow been corrupted... It's probably a good time to switch to my PostgreSQL server. I'll do the transfer once I get a chance.
I still find it odd that Django reports a different table name than the traceback.
Thanks,
Michel