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, duplicates: bootstrap3 #124

Closed
holms opened this issue Aug 20, 2014 · 8 comments
Closed

Application labels aren't unique, duplicates: bootstrap3 #124

holms opened this issue Aug 20, 2014 · 8 comments
Assignees
Milestone

Comments

@holms
Copy link

holms commented Aug 20, 2014

Guys, seems that you have a conflict with other cool django app installed: https://github.com/dyve/django-bootstrap3

    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',
    )
@xrmx
Copy link
Contributor

xrmx commented Aug 20, 2014

Thanks for reporting! Is this with django 1.7 right? I think i have a django 1.6 installation with both. We know we quite a few issues with django 1.7 and latest release added a requirement on django < 1.7. Hopefully with the new app loading stuff we can fix this easily.

@xrmx xrmx added this to the 1.8.0 milestone Aug 20, 2014
@holms
Copy link
Author

holms commented Aug 20, 2014

yes it's django 1.7c1 ) I've asked in #django channel, in freenode, they recommended to use AppConfig, something like this, to solve this issue. but i believe renaming dir would be wise probably? or adding some prefix so your app could be identified like admin-bootstrap3. Just a suggestion... :)

@xrmx xrmx self-assigned this Aug 22, 2014
@xrmx xrmx closed this as completed in 82d90e9 Aug 22, 2014
@screendriver
Copy link

Same issue here. Today I updated to the final release of Django 1.7 but I can't use django-admin-bootstrapped (1.6.9)

django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: bootstrap3

@xrmx
Copy link
Contributor

xrmx commented Sep 5, 2014

This has been fixed in master which would became 2.0, waiting fixing other 1.7 issues before releasing.

@screendriver
Copy link

👍

@mjrulesamrat
Copy link

I'm building project with django-oscar. I have to modify the customer view by extending it.
When I do so then I get this error.."django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: customer".
Can you help to solve this?
Thanks

Below is code snippet:

from oscar.apps.customer.views import ProfileView as CoreProfileView

class ProfileView(CoreProfileView):
template_name = 'new_page_demo.html'

@xrmx
Copy link
Contributor

xrmx commented Feb 23, 2015

@mjrulesamrat The error means you have two apps called customer, see 82d90e9 for how we fixed this kind of issue for another app. Said that better ask this kind of questions in the proper support mediums https://docs.djangoproject.com/en/1.7/faq/help/

@Vishal8236
Copy link

Same issue here.

django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: sessions

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

5 participants