0

I have a large django project I am working on, that is largely based around the wagtail CMS. I recently added the django-wiki app to my project, and ran into issues running makemigrations, getting the error: "Application labels aren't unique, duplicates: sites "

It seems both wagtail and django-wiki have apps and applables called 'sites', which is causing a conflict.

Given that these apps are not my apps, renaming them as though they were would seem like a bad approach, causing issues whenever I were to upgrade. What is the correct approach to deal with this problem without breaking the packages?

edit: My INSTALLED_APPS:

'home',

'django.contrib.sites.apps.SitesConfig',
'django.contrib.humanize.apps.HumanizeConfig',
'django_nyt.apps.DjangoNytConfig',
'mptt',
'sekizai',
'sorl.thumbnail',
'wiki.apps.WikiConfig',
'wiki.plugins.attachments.apps.AttachmentsConfig',
'wiki.plugins.notifications.apps.NotificationsConfig',
'wiki.plugins.images.apps.ImagesConfig',
'wiki.plugins.macros.apps.MacrosConfig',
    
"wagtail.contrib.routable_page",

'wagtail.contrib.forms',
'wagtail.contrib.redirects',
'wagtail.embeds',
'wagtail.sites',
'wagtail.users',
'wagtail.snippets',
'wagtail.documents',
'wagtail.images',
'wagtail.search',
'wagtail.admin',
'wagtail.core',

'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
Jake Rankin
  • 714
  • 6
  • 22

0 Answers0