[Answered ]-Import model in Django to services django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured

1👍

my_site is project, instead, you need to deal with app resume which is your app.

and you have problem with models import as well.

from .models import PersonalData

and remove other unnecessary codes to django.setup() and environment variable for the DJANGO_SETTINGS_MODULE.

Another mistake I can see is typo mistake on project setting. You projectname is mysite not my_site

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')

Leave a comment