Changing the administrator URL is one of the security measures (likely).
With ~ / admin /
, you can easily reach the login screen of the administrator site.
Changing the URL is an easy and relatively effective measure.
Very easy.
urls.py
urlpatterns = [
# path('admin/', admin.site.urls), #The default is admin
path('admin-custom-url/', admin.site.urls),
]
It may be easy and obvious, but that's it. This is also a memorandum!
I want to take security measures carefully, and I think so nowadays.
Recommended Posts