Pycharm and DJANGO_SETTINGS_MODULE

270 views
Skip to first unread message

Dariusz Mysior

unread,
Apr 7, 2016, 4:59:36 PM4/7/16
to Django users
Hi in linux console it's ok but in Pycharm in IPython console when I execute f.e. from django.contrib.auth.models import AbstractUser i have bug like below


django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.


In Run Configuration in environment paramets I have DJANGO_SETTINGS_MODULE with mysite.settings, wsgi and manage also have this info, where can I check it else...

Avraham Serour

unread,
Apr 10, 2016, 1:12:00 PM4/10/16
to django-users
the run configuration is separate from the console environment


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6ac3b375-f97b-4b03-8429-2b36b95c6f48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages