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

Can't use AppConfig in INSTALLED_APPS for custom comments app #73

Open
jsma opened this issue Mar 9, 2016 · 2 comments
Open

Can't use AppConfig in INSTALLED_APPS for custom comments app #73

jsma opened this issue Mar 9, 2016 · 2 comments

Comments

@jsma
Copy link

jsma commented Mar 9, 2016

The import code here fails if using the full dotted path to an app config in INSTALLED_APPS and COMMENTS_APP.

@RadoRado
Copy link

RadoRado commented Jun 9, 2016

I am having the same problem.

@RadoRado
Copy link

RadoRado commented Jun 9, 2016

@jsma I managed to get it working.

In a Django shell, if you do:

from django.apps import apps

for app in apps.get_app_configs():
    print(app, app.name, app.label)

You will see the proper app.name that is required by is_installed

For example, if you have project.some_app.apps.SomeAppConfig in your INSTALLED_APPS then project.some_app is going to be the proper name that will work for COMMENTS_APP

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