Thanks Rusell, that helps.

On Thu, Sep 25, 2014 at 1:52 AM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

> Hi Sabine,
>
> No - you don't put it in your settings file; the settings file is loaded
> as part of the setup call.
>
> As a completely manual process, you can just run the following:
>
> import django
> django.setup()
>
> as the first two commands in your Python shell. If PyCharm has any hooks
> you can tie into for providing shell startup logic, that would be a good
> place to put these two lines.
>
> Yours,
> Russ Magee %-)
>
> On Wed, Sep 24, 2014 at 10:45 PM, Sabine Maennel <sabine.maen...@gmail.com
> > wrote:
>
>> I am using Pycharm and I did declare my project as a Django project. So
>> how can call django.setup()? Do I do that in my settings-file?
>>
>>
>> On Wed, Sep 24, 2014 at 4:38 PM, Collin Anderson <cmawebs...@gmail.com>
>> wrote:
>>
>>> Are you using a plain python shell or ./manage.py shell? If you are
>>> using a plain python shell, you must call django.setup() first.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/r4BaiFdqMeY/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/809ad79d-0036-4ddd-ac1c-a417ed25eed3%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/809ad79d-0036-4ddd-ac1c-a417ed25eed3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Sabine Maennel
>> Leimbachstr. 223
>> 8041 Zürich
>> Tel. +41 (0) 43 53 778 74
>> Mathematikerin / Softwareingenieurin
>> sabine.maen...@gmail.com
>> Blog: http://sabinemaennel.ch
>> Startup: http://net-teachers.com
>>
>> --
>> 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADDVkog%3DA4SUFU2RbQmrh859YSGc98FJNdu588-tjMz853%3DowQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADDVkog%3DA4SUFU2RbQmrh859YSGc98FJNdu588-tjMz853%3DowQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/r4BaiFdqMeY/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-f99%2BfSxV47JL9Y2rALf%3DP0Ed7XWoOcDtiADep5HaNQg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJxq84-f99%2BfSxV47JL9Y2rALf%3DP0Ed7XWoOcDtiADep5HaNQg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sabine Maennel
Leimbachstr. 223
8041 Zürich
Tel. +41 (0) 43 53 778 74
Mathematikerin / Softwareingenieurin
sabine.maen...@gmail.com
Blog: http://sabinemaennel.ch
Startup: http://net-teachers.com

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADDVkoi%3DMwYTnX8jwrbv6iyZw%3D3K-LO3FkAX9H5TmX6sVi3wAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to