#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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/055.b8060d02181ede46834b05636dc8c765%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.