Importing settings files directly is more common than you think. - DEV Community
python - import model in Django to services django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured - Stack Overflow
Unresolved import references of Django modules – IDEs Support (IntelliJ Platform) | JetBrains
Initializing settings.py after moving to environment variables - Using Django - Django Forum