[Django] #30598: Overriding the default admin site

6 views
Skip to first unread message

Django

unread,
Jun 26, 2019, 5:42:45 PM6/26/19
to django-...@googlegroups.com
#30598: Overriding the default admin site
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
WayneLambert |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 2.2
contrib.admin |
Severity: Normal | Keywords: admin, override
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hi,

When I read the section in the docs called 'Overriding the default admin
site', I was left wondering whether I needed to create an admin.py and
apps.py file within the project folder. Let me explain...

Because a Django project has the folder level which contains settings.py
and wsgi.py but does not contain apps.py and admin.py by default, but the
documents say 'myproject/admin.py' (in the code block headings), this led
me to believe that files needed to be created within the project folder
(i.e. in the same location as settings.py).

If it is the intention to create new files in this location, I think the
docs should say 'create new files called ...'

If it is the intention that it is an app's admin.py and apps.py files that
should be amended, then I think that the block of code should have the
headers of myapp/admin.py and myapp/apps.py

Docs Location: https://docs.djangoproject.com/en/2.2/ref/contrib/admin
/#overriding-the-default-admin-site

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

Django

unread,
Jun 27, 2019, 1:40:57 AM6/27/19
to django-...@googlegroups.com
#30598: Create new files when vverriding the default admin site.
-------------------------------------+-------------------------------------
Reporter: Wayne Lambert | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 2.2
Severity: Normal | Resolution: wontfix

Keywords: admin, override | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => wontfix
* component: contrib.admin => Documentation
* easy: 1 => 0


Comment:

Thanks for the report. However I don't think that it requires
clarification, it is a preferable option to create these files in a
project directory. Moreover it's not a beginner use case or a part of
tutorial and both paths and content are correct.

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

Django

unread,
Jun 27, 2019, 1:41:25 AM6/27/19
to django-...@googlegroups.com
#30598: Create new files when overriding the default admin site.

-------------------------------------+-------------------------------------
Reporter: Wayne Lambert | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 2.2
Severity: Normal | Resolution: wontfix
Keywords: admin, override | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/30598#comment:2>

Reply all
Reply to author
Forward
0 new messages