﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8126	admin.autodiscover() fails on bogus INSTALLED_APPS entries	Beetle_B	Jacob	"'''Update: the real issue is that bogus entries in INSTALLED_APPS don't fail so well. Original ticket follows. —JKM'''

Revision 8185: Everything works fine. 

8186 and current revision (8219) won't work unless I comment out admin.autodiscover(). There actually was a bug with one of my admin.py's, but now that's been fixed - the problem remains. I can import all my admin.py's from the shell just fine. 

In fact, I even tried removing all my admin.py files. But admin.autodiscover() still kills everything. Traceback is not helpful:

{{{
 Request URL: http://127.0.0.1:8000/projects/
Django Version: 1.0-alpha-SVN-8219
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.markup',
 'collab.registration',
 'django.core.mail',
 'django.contrib.admin',
 'collab.profiles',
 'collab.project',
 'collab.teleconference',
 'collab.action',
 'collab.issues']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'collab.collab_middleware.CheckProfileExistence',
 'collab.collab_middleware.RemoveAnonymousMessage')


Traceback:
File ""/usr/lib/python2.5/site-packages/django/core/handlers/base.py"" in get_response
  78.                     request.path_info)
File ""/usr/lib/python2.5/site-packages/django/core/urlresolvers.py"" in resolve
  238.             for pattern in self.urlconf_module.urlpatterns:
File ""/usr/lib/python2.5/site-packages/django/core/urlresolvers.py"" in _get_urlconf_module
  262.                 raise ImproperlyConfigured, ""Error while importing URLconf %r: %s"" % (self.urlconf_name, e)

Exception Type: ImproperlyConfigured at /projects/
Exception Value: Error while importing URLconf 'collab.urls': 'module' object has no attribute '__path__'
}}}

Ideas? "		closed	contrib.admin	dev		fixed			Accepted	1	0	0	0	0	0
