Hallöchen!

Torsten Bronger writes:

> [...]
>
> But it gets even more strange: The models module of "chantal_ipv"
> imports models from "samples".  I think this is the problem.  If I
> comment out all calls to admin.site.register in the models of
> "samples", it works!  WTF?

I tracked the problem down to the file django/db/models/loading.py.
"import_module" in the method load_app fails.  Apparently it tries
to load chantal_ipv.models which in turn loads samples.models which
in turn calls admin.site.register, which starts the loop again.

The whole thing belongs to model validation which doesn't take place
if "DEBUG=False".

By the way, how can I get proper tracebacks from "manage.py --sync"?
"--traceback" doesn't do it.

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                   Jabber ID: [email protected]
                                  or http://bronger-jmp.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to