Thank you so much for these very helpful links to the documentation, 
Russell!

Am Donnerstag, 25. September 2014 01:48:52 UTC+2 schrieb Russell 
Keith-Magee:
>
> Hi Sabine,
>
> Yes, this error is related to 1.7; no, it's not related to migrations. 
> It's related to the App Loading refactor:
>
> https://docs.djangoproject.com/en/1.7/releases/1.7/#app-loading-refactor
>
> The error is caused because you're interacting with Django models before 
> all the models are known to be loaded. If you're starting a completely 
> vanilla Python shell, (i.e., not manage.py shell), then the error has been 
> caused because you haven't called django.setup() - this is a new method 
> required in 1.7 to bootstrap the Django environment.
>
> If you're seeing this error in a manage.py, then there is clearly some 
> sort of complex interaction occurring during the loading of your models; 
> we'll need more details about your setup to be able to diagnose what is 
> going on.
>
> You'll find more details about the new App infrastructure in the docs:
>
> https://docs.djangoproject.com/en/1.7/ref/applications/
>
> Yours,
> Russ Magee %-)
>
> On Wed, Sep 24, 2014 at 7:59 PM, Sabine Maennel <[email protected] 
> <javascript:>> wrote:
>
>> Mostly it is models in the same app: one is fine and the other one throws 
>> this error, when I call them from my shell: 
>>
>> I start my shell and run 
>>
>> x=<MyModel>.objects.all() 
>>
>> which runs fine, but then when I want to show x by:
>>
>> print x 
>>
>> the error occurs. 
>>
>> I really do not know what it means, googling it did not help at all. 
>> Please help. It seems to be something special to Django 1.7? Is it related 
>> with migrations? 
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/659f1cc0-c00e-4347-abe4-b874a0cfcd1f%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/659f1cc0-c00e-4347-abe4-b874a0cfcd1f%40googlegroups.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 the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
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/5d54e8f7-a877-4ecd-b4c7-a0ac072971a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to