I had the same problem and found a solution by examining the settings of a newer project (created in a later version of PyCharm).
Put the following code in your Django console settings (Settings> Build, Run, Deploy> Console> Django Console> Run the script):
import sys; print('Python %s on %s' % (sys.version, sys.platform)) import django; print('Django %s' % django.get_version()) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) if 'setup' in dir(django): django.setup() import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)
This code exists by default when the project is executed in the new PyCharm.
source share