#4993: Application cannot be called collections, but manage.py doesn't disallow
the user to create it
--------------------------------+-------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  adrian                    
  Status:  new                  |   Component:  Core framework            
 Version:  SVN                  |    Keywords:  collections model conflict
   Stage:  Unreviewed           |   Has_patch:  0                         
--------------------------------+-------------------------------------------
 If one creates an application named 'collections', and subsequently
 attempts to run ``syncdb`` against it, an ImportError is raised as it
 'overrides' the ``collections`` module, from which ``deque`` is tried to
 be imported by ``threading``:
 
 {{{
 Traceback (most recent call last):
   File "manage.py", line 11, in ?
     execute_manager(settings)
   File "/opt/local/lib/python2.4/site-packages/django/core/management.py",
 line 1678, in execute_manager
     execute_from_command_line(action_mapping, argv)
   File "/opt/local/lib/python2.4/site-packages/django/core/management.py",
 line 1577, in execute_from_command_line
     action_mapping[action](int(options.verbosity), options.interactive)
   File "/opt/local/lib/python2.4/site-packages/django/core/management.py",
 line 468, in syncdb
     from django.db import connection, transaction, models,
 get_creation_module
   File "/opt/local/lib/python2.4/site-packages/django/db/__init__.py",
 line 11, in ?
     backend = __import__('django.db.backends.%s.base' %
 settings.DATABASE_ENGINE, {}, {}, [''])
   File "/opt/local/lib/python2.4/site-
 packages/django/db/backends/mysql/base.py", line 61, in ?
     from django.utils._threading_local import local
   File "/opt/local/lib/python2.4/site-
 packages/django/utils/_threading_local.py", line 240, in ?
     from dummy_threading import currentThread, enumerate, RLock
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/dummy_threading.py",
 line 50, in ?
     import threading
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py",
 line 13, in ?
     from collections import deque
 ImportError: cannot import name deque
 }}}
 
 I know it's no biggie; just thought I might make people aware of it - not
 sure even if this even warrants a ticket, though!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4993>
Django Code <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 [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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to