django-contrib-comments
django-contrib-comments copied to clipboard
Can't use AppConfig in INSTALLED_APPS for custom comments app
The import code here fails if using the full dotted path to an app config in INSTALLED_APPS and COMMENTS_APP.
I am having the same problem.
@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