If your IntelliJ is updated, there is another solution.
I had the same issue in IntelliJ 2017.2 and it drove me crazy until I read this post from an IntelliJ maintainer .
If you use IntelliJ Idea and “Load an Existing Project”, it will model it as a Java project with connected Python modules. You cannot load Django, no matter what you do.
I handled this by clearing the .idea directory and creating a new Django project , the previously existing Django directory being the base directory in IntelliJ. Now I can see Django in the project structure> project parameters> part of the Intellij module, and I can select the django settings file.
Step by step in the pictures
Delete .idea folder
Create a new project 
Choose Python> Django 
Click next 
Select an existing django project path (or start from scratch with a new folder) 
Add DJANGO_SETTINGS_MODULE=yourprojectname.settings to your launch configuration (can be found in the file yourprojectname/wsgi.py ).


Enjoy the development of Django 🚀
source share