[Fixed]-Django test failing with 404 when it shouldn't

1đź‘Ť

Just as I went to submit this question, I recalled reading about the test database, and how it’s created empty, so that “apollo” didn’t exist. Once I created it with the following line, the test passed:

MasterServers.objects.create(servername="apollo")
👤Tim S.

Leave a comment