Good day All,
I am currently running a test for my Django app call 'Books'.
Anytime I run an INDEX test, I get the following error below:
"File "/Users/macbookpro/.local/share/virtualenvs/first_django_app-mymO4nCn/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 396, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.IntegrityError: NOT NULL constraint failed: books_book.user_id"
Please can anyone point to what the issue is or what I am doing wrong.
Thanks and Regards,