Re: Pycharm and DJANGO_SETTINGS_MODULE

2016-04-10 Thread Avraham Serour
the run configuration is separate from the console environment


On Thu, Apr 7, 2016 at 7:59 PM, Dariusz Mysior 
wrote:

> 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...
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAFWa6tJHVaW8ZDJAvSD7ikNMLS4R8Hsp47hzVTZtgOkztvQ%2BRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pycharm and DJANGO_SETTINGS_MODULE

2016-04-07 Thread Dariusz Mysior
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...

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.