Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'default' #392

Open
globophobe opened this issue Dec 25, 2013 · 3 comments
Open

AttributeError: 'module' object has no attribute 'default' #392

globophobe opened this issue Dec 25, 2013 · 3 comments

Comments

@globophobe
Copy link

Where did "default" go? I can see it very clearly in djadmin2/init.py

My urls.py

import djadmin2
print dir(djadmin2)
djadmin2.default.autodiscover()

Output from manage.py trimmed...

['ISO_8601', 'VERSION', 'author', 'builtins', 'doc', 'file', 'name', 'package', 'path', 'version', 'absolute_import', 'apiviews', 'division', 'filters', 'forms', 'models', 'permissions', 'settings', 'unicode_literals', 'utils', 'viewmixins']

File "/urls.py", line 8, in
djadmin2.default.autodiscover()
AttributeError: 'module' object has no attribute 'default'

@pydanny
Copy link
Member

pydanny commented Jan 2, 2014

Your urls.py is

import djadmin2
print dir(djadmin2)
djadmin2.default.autodiscover()

@adlorenz
Copy link

I've just come across the same issue, turned out debug_toolbar has been conflicting here somehow. Removing it from INSTALLED_APPS did the trick. It was DDT 1.0 btw.

@auvipy
Copy link
Contributor

auvipy commented Nov 14, 2016

@andrewsmedina @galuszkak I believe we should get rid of admin.autodiscover()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants