I am using PyCharm 5.0.1, Windows 10 and virtualenvwrapper-win for my virtual environment.
Path to the Virtual Environment in Project Interpreter is configured properly as I can see all installed modules. Problem is I can't get my activate.bat and postactivate.bat scripts working, in which I've set env variables for my django projects.
Setting up Python Console works (load some .py file with environment variables configuration), but obviously only for Python Console. When I run my project, it won't work.
Using virtualenvwrapper in Terminal works like a charm.
django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Problem happens when conf/__init__.py tries to get env variable
ENVIRONMENT_VARIABLE = "DJANGO_SETTINGS_MODULE
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)