I have using IntelliJ IDEA for php developement and it works without a issue. I have just started doing some Django coding and I encountered this issue where autocomplete doesn't work for imports.
I'm using Python 3.9 with Django 4.0.6 and I use pipenv for virtual environment.
I'm trying to do some basic imports like importing HttpResponse from django.http. I expect the IDE to suggest the import as I'm typing (like for php) but it doesn't. for it to work I have to press control+space 2 times and then it shows the suggestions (If I just pres it 1 time it says "No suggestions") or I can type everything then press option+return and it suggests to import it then.
Auto Import setting for python is like this:
Code Completion setting doesn't have a Python section but the general area is set up like this:
Project setting seems to be correct and does have the django module:
and this is my .iml file in the .idea folder:
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="FacetManager">
<facet type="django" name="Django">
<configuration>
<option name="rootFolder" value="$MODULE_DIR$" />
<option name="settingsModule" value="django_app/settings.py" />
<option name="manageScript" value="manage.py" />
<option name="environment" value="<map/>" />
<option name="doNotUseTestRunner" value="false" />
<option name="trackFilePattern" value="migrations" />
</configuration>
</facet>
<facet type="Python" name="Python">
<configuration sdkName="Pipenv (social-media)" />
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Pipenv (social-media) interpreter library" level="application" />
</component>
</module>



