[Django] #32926: Overriding admin site error

6 views
Skip to first unread message

Django

unread,
Jul 13, 2021, 11:57:25 PM7/13/21
to django-...@googlegroups.com
#32926: Overriding admin site error
-----------------------------------------+------------------------
Reporter: gojuukaze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/32926>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 14, 2021, 1:32:40 AM7/14/21
to django-...@googlegroups.com
#32926: Overriding admin site error
-------------------------------+--------------------------------------
Reporter: gojuukaze | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 3.2
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/32926#comment:1>

Reply all
Reply to author
Forward
0 new messages