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

Exception when using a dotted path to an AppConfig in INSTALLED_APPS #5

Closed
thomasWajs opened this issue Feb 18, 2015 · 1 comment
Closed

Comments

@thomasWajs
Copy link
Contributor

Since django 1.7, it's possible to use a dotted path to an AppConfig class instead of a dotted path to an app top-module.
Example for the admin app, without auto-discovering :

INSTALLED_APPS = (
    'django.contrib.admin.apps.SimpleAdminConfig',
    ...
)

In this situation, fobi.discovery.autodiscover.do_discover fail at line 29

app_path = __import__(app, {}, {}, [app.split('.')[-1]]).__path__
File "\lib\site-packages\fobi\discover.py", line 29, in do_discover
    app_path = __import__(app, {}, {}, [app.split('.')[-1]]).__path__
ImportError: No module named SimpleAdminConfig
@barseghyanartur
Copy link
Owner

@thomasWajs

Thanks for reporting this. Fixed in version 0.4.24.

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

No branches or pull requests

2 participants