When I try to access the database that Django automatically creates from the interpreter, or from a script that Django has not created on its own, I receive an error.
Code where I try to import the User model of the application called app :
from app.models import User
Error that prints when trying to do that operation:
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the variable environment DJANGO_SETTINGS_MODULE or call settings.configure () before accessing settings.