[Answered ]-Django saying that table does not exist

2👍

This has nothing to do with values, You’re using the using method in the second query which is used to tell django which database you want to query.

Henceforth you’re looking in a separate database which does have the relevant migrations applied

👤Sayse

0👍

For anyone else who finds this when they Google it, the problem that I had that caused this same error (which was not the OP’s problem, as it turns out) was that I had a router that assigned the model to different hosts for reading and writing, and the writing host was behind a firewall, so that would be another thing to check if you see that Django is saying the table does not exist when it definitely does.

Leave a comment