[Fixed]-Django unittest failing with table not found

1👍

First:
Run the makemigrations.

Try this :

python manage.py makemigrations

Second: lion is a Projects object, not a queryset.
If you want get the count of Projects, try change the assert to:

self.assertEqual(Projects.objects.count(), 1)

Leave a comment