jazzband / jazzband/django-admin2

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

Open
#392 3 comments 0 reactions 0 assignees View on GitHub
future Priority
Dominant language
Python
Stars
1.2k
Forks
147
PR merge metrics
No merged PRs in 30d

Description

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'

Contributor guide

Open the contributing guide

Research direction

Start by reading djadmin2/__init__.py and the urls.py import shown in the report, then reproduce the error through manage.py. Compare the exported names with the attempted djadmin2.default.autodiscover() call. Done means the reported AttributeError is resolved or the supported autodiscover entry point is clarified by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.