I did manage to get this working by a quick change to django.db.models.loading.py
where on line 40 in get_models() i changed _app_models.get(app_mod.__name__.split(.)[-2], {}).values() to _app_models.get(app_mod.__name__.split(.)[-1], {}).values() I do not know, whether it is a right thing to do, but it works for me, but it doesn't work with the single models.py file and behaves sort of ugly I will have time in cc 3 or 4 hours, so if anyone wants to have a look into it before I do, please do sorry for the "patch" format, but I have to computers here - one with linux and Django, and the other with internet (I hate MS proxies) :/ On 5/3/06, Honza Král <[EMAIL PROTECTED]> wrote: > I was getting worried that I didn't get some basic fact, > thank you for your help > > On 5/3/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Wed, 2006-05-03 at 16:29 +0200, Honza Král wrote: > > > BEGIN; > > > COMMIT; > > > is the output of manage.py sql app (empty sql script for postgreSQL) > > > > > > I am fairly new to python, so I completely don't mind trivial questions, > > > in app/models/__init__.py I have: > > > ---- > > > # base models > > > from proj.app.models.base import * > > > # models derived from base > > > from proj.app.models.more_models import * > > > > > > # I even added > > > __all__ = [ 'List', 'Of', 'All', 'My', 'Model', 'Classes' ] > > > ----- > > > and it still wouldn't work > > > > > > if I run shell and try to use my models from there ( from > > > proj.app.models import * ) everything works OK, dir shows all my model > > > classes... > > > > I thought this should work, but I must admit that a quick test I did > > just now completely failed. Wait for the Earth to turn a little more on > > its axis: Luke Plant has a bit of experience in this area (every time it > > broke, he screamed), so I think we are missing something obvious. Give > > it some time and see if Luke notices this thread (or somebody else spots > > what's wrong). > > > > Cheers, > > Malcolm > > > > > > > > > > > > > -- > Honza Král > E-Mail: [EMAIL PROTECTED] > ICQ#: 107471613 > Phone: +420 606 678585 > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---