Opened 3 years ago

Closed 3 years ago

#32926 closed Bug (duplicate)

Overriding admin site error

Reported by: gojuukaze Owned by: nobody
Component: contrib.admin Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I got error when I overriding admin site

Traceback (most recent call last):
  File "manage.py", line 25, in <module>
    main()
  File "manage.py", line 21, in main
    execute_from_command_line(sys.argv)
  File "/Users/xx/project/py38/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/Users/xx/project/py38/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/Users/xx/project/py38/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/xx/project/py38/lib/python3.8/site-packages/django/apps/registry.py", line 93, in populate
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: admin

I wrote the code based on tutorial (https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#overriding-the-default-admin-site), and it works well on django 3.1

Change History (1)

comment:1 by Mariusz Felisiak, 3 years ago

Resolution: duplicate
Status: newclosed

The current docs works for me. Maybe you created these files in an app directory not in an project directory. Duplicate of #32642 and #30598.

Note: See TracTickets for help on using tickets.
Back to Top