django-admin2
django-admin2 copied to clipboard
AttributeError: 'module' object has no attribute 'default'
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
Your urls.py is
import djadmin2
print dir(djadmin2)
djadmin2.default.autodiscover()
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.
@andrewsmedina @galuszkak I believe we should get rid of admin.autodiscover()