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

«Application labels aren't unique» error while overriding #312

Closed
AliIslamov opened this issue Nov 6, 2023 · 2 comments
Closed

«Application labels aren't unique» error while overriding #312

AliIslamov opened this issue Nov 6, 2023 · 2 comments

Comments

@AliIslamov
Copy link

AliIslamov commented Nov 6, 2023

Try to do overriding machina.apps.forum in according with:

https://django-machina.readthedocs.io/en/stable/customization/overriding_applications.html

and

https://django-machina.readthedocs.io/en/stable/customization/recipes/overriding_models.html

As result I have got new app «overrided.forum» in INSTALLED_APPS

But when I try to makemigrations, I get error:

raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: forum

How can I fix it?

@ellmetha
Copy link
Owner

Hey @AliIslamov! Can I ask which application you tried to override? Did you make sure to remove the overridden application path from the INSTALLED_APPS setting? For example, if you overridden the machina.apps.forum_conversation application, then you must replace it by your overridden application Python path (eg. my_app.apps.forum_conversation).

@AliIslamov
Copy link
Author

AliIslamov commented Nov 12, 2023

Hey @AliIslamov! Can I ask which application you tried to override? Did you make sure to remove the overridden application path from the INSTALLED_APPS setting? For example, if you overridden the machina.apps.forum_conversation application, then you must replace it by your overridden application Python path (eg. my_app.apps.forum_conversation).

I'm trying to override 'machina.apps.forum_conversation'.

And yes, I commented this app in INSTALLED_APPS by # and add new one 'apps.forum_conversation' which is located in the project root folder.

At this moment I have fixed this error but I have got a new one:

#313

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