Luke Plant wrote: > On Wednesday 19 April 2006 14:53, njharman wrote: > >>[Sorry if this should be on django-developer instead] >> >>r2714 of the magic-removal branch >> >>I have models/* and not a models.py in my app directory. >> >>#myapp/models/__init__.py >>from adventure import Story >>class Foo(models.Model): >> pass >> >>'manage.py sql' produces output for Foo model but not Story model. >>If I copy Story to __init__.py or move everything to models.py output >>is produced correctly. >> >>Is this intended? > > > Nope, and it works fine for me - I have the same setup, except I don't > have the 'Foo' model, just the 'Story' model. Of course, I do > 'manage.py sql myapp', not just 'manage.py sql' - actually I normally > just use django_admin.py.
I use 'manage.py sql myapp' aswell. Tried using django_admin.py without success (it is nearly identical to manage.py) Are you using magic-removal? Worked in .91 for me. I'm having other bizare import behaviour with mr. Using admin interface; some models [I believe ones using or related to by strings e.g. ForeignKey("model")] cause "ImportError: No module named traceback" deep in SocketServer.py Actually clicking the management links never returns I only get the above error sometimes when killing the server. Exception happened during processing of request from ('127.0.0.1', 50247) Unhandled exception in thread started by <function inner_run at 0x417b30> Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management.py", line 980, in inner_run run(addr, int(port), AdminMediaHandler(WSGIHandler())) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/servers/basehttp.py", line 643, in run httpd.serve_forever() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/SocketServer.py", line 200, in serve_forever self.handle_request() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/SocketServer.py", line 223, in handle_request self.handle_error(request, client_address) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/SocketServer.py", line 268, in handle_error import traceback ImportError: No module named traceback I'm sad. -- o o be kind to /-\ the robots --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---