I am trying to integrate Django-jet
with Django-oscar
, but keep getting the error:
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: dashboard
I have tried removing oscar core dashboard app from the installed apps list using OSCAR_HIDDEN_FEATURES
but does not seem to work.
The proper solution for this is for the apps packaged by both packages should follow the new convention of using an
AppConfig
that can be subclassed and modified (to change the app label).Unfortunately neither
django-jet
nordjango-oscar
1.6 follow this practise, so you are a bit stuck. Django 2.0 (just released) has moved to use app configs, so your best bet is to use that and subclass Oscar's dashboard app to give it a different label. You would then list your subclass inINSTALLED_APPS
instead of the default one.Side note - Oscar provides it's own dashboard that is completely independent of the Django admin. I am not sure there is much to be gained by combining these two packages in the same project.
OSCAR_HIDDEN_FEATURES
is not relevant here - it only controls what is visible in the front end, not what apps are loaded.