#13335: Revision 12950 crashes complex interdependent models in directory ---------------------------------------------------+------------------------ Reporter: haras | Owner: nobody Status: new | Milestone: 1.2 Component: Database layer (models, ORM) | Version: SVN Resolution: | Keywords: Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 1 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Comment (by haras):
After applying your patch to r12950 to my unmodified revision (this without correcting ..admin problem) produces much less traceback, but still and no DEBUG = False, does not correct it for me {{{ Validating models... Unhandled exception in thread started by <function inner_run at 0x101b0a1b8> Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/core/management/commands/runserver.py", line 48, in inner_run self.validate(display_num_errors=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/core/management/base.py", line 250, in validate num_errors = get_validation_errors(s, app) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/core/management/validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/db/models/loading.py", line 142, in get_app_errors self._populate() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/db/models/loading.py", line 63, in _populate self.load_app(app_name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/db/models/loading.py", line 83, in load_app models = import_module('.models', app_name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/payment/models/__init__.py", line 7, in <module> from crm.payment.models.payment import Payment File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/payment/models/payment.py", line 12, in <module> from crm.contract.models.contract import Contract File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/contract/models/__init__.py", line 7, in <module> from crm.contract.models.contract import Contract File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/contract/models/contract.py", line 14, in <module> from crm.group.models.group import Group File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/group/models/__init__.py", line 7, in <module> from crm.group.models.group import Group File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/group/models/group.py", line 91, in <module> from ..admin import group File "/Users/haras/Source/WebApps/current/crm/srcOld/crm/group/admin/group.py", line 8, in <module> from crm.contract.models.contract import Contract ImportError: cannot import name Contract }}} -- Ticket URL: <http://code.djangoproject.com/ticket/13335#comment:10> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.