Django: application labels are not unique, duplicates: bootstrap3

I have this error after I installed these two applications: https://github.com/dyve/django-bootstrap3 and https://github.com/django-admin-bootstrapped/django-admin-bootstrapped

django@apgavo:~/apgavo$ python manage.py collectstatic Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute django.setup() File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 89, in populate "duplicates: %s" % app_config.label) django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: bootstrap3 

settings.py:

 INSTALLED_APPS = ( 'django_admin_bootstrapped.bootstrap3', 'django_admin_bootstrapped', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_extensions', 'bootstrap3', ) 

Is there any way to fix this? Or should it be presented as a problem in one of the projects?

+8
django ubuntu
source share
1 answer

It seems that in Django 1.7, applications should be uniquely marked. This is a new requirement and therefore causes new conflicts. In your example, there are two applications named bootstrap3: the bootstrap3 extension and the django_admin_bootstrapped.bootstrap3 extension - Django only seems to honor the package name, not the full package path.

Django 1.7 has instructions for solving this problem: https://docs.djangoproject.com/en/1.7/ref/applications/#for-application-authors

At the moment, it seems that you need to wait until the developers of these two applications publish the patch. Both projects already have corresponding problems:

Well, I just noticed that these two questions were submitted by you. :) Nevertheless, I will leave the answer for future reference.

+12
source share

All Articles