[Django]-Django databases: problems with the test database

2👍

The error could be due to your BASE_DIR path, in your settings.py, you need to remove the slash / and switch it over to the following

'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),

You may need to verify depending on your BASE_DIR contents that it points to the right place. One way to debugging this is to set ipdb() just after your database dictonary, so once you use python manage.py runserver, can can easily inspect the DATABASES structure.

import ipdb; ipdb.set_trace()

Source: https://pypi.org/project/ipdb/

Leave a comment