I encountered an AUTH_USER_MODEL error while trying to populate my database with fake data?
I wanted to populate my database for testing purposes, so after doing some research, I came across a tool called FactoryBoy. I decided to use it in conjunction with Pandas to extract data from a CSV file and load it into my database. After writing the code, I gave it a try. Initially, I faced some configuration issues, particularly with defining the correct path, as I was running the script directly without using manage.py. Eventually, I encountered an error that I couldn’t resolve, as I couldn't define the source.
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'users.User' that has not been installed
I added the users module to the INSTALLED_APPS environment variable, but I'm still encountering this error. Do you have any suggestions on how to fix it?