If you use Django Admin as instructed, your site hosts the admin panel at /admin. While that is all good, you can change the root URL to anything you want.
(Hackers request that you move your admin to /wp-login.php for absolute convenience. Also, please do not do this.)
How to
From the Django documentation, this is how you probably have registered your admin URLs:
# urls.py
from django.contrib import admin
from django.urls import path
urlpatterns = [
path("admin/", admin.site.urls),
]
Update the path to any value you want:
path("the-new-admin-on-the-block/", admin.site.urls),
If you use the Django admin documentation generator or custom admin paths, also update those:
urlpatterns = [
path("new-admin/custom/", MyCustomAdminView.as_view(), name="admin_my_custom_view"),
path("new-admin/doc/", include("django.contrib.admindocs.urls"))
path("new-admin/", admin.site.urls),
]
If you do not use hardcoded links to /admin (e.g., when you use Django's URL reverse() method), you're all covered.
Wrap-up
If desired, you can move your Django Admin to another endpoint, and it's relatively pain-free!
When using Django named URL reversals instead of hardcoding URLs, you won't even have to update templates or other views.