Django offers an admin interface at /admin
. Is it not safe to keep this URL during production?
Or should I change the URL to /d0oai32492384h24ui234nij23n4k2jnkjnkjn
or something?
I guess this is what you want (this won't work on Django < 2.0):
urlpatterns = [
path('d0oai32492384h24ui234nij23n4k2jnkjnkjn/', admin.site.urls),
]
This will work on Django < 2.0:
urlpatterns = [
url(r'^d0oai32492384h24ui234nij23n4k2jnkjnkjn/', admin.site.urls),
]
This has to be done in your main urls.py file. You can access it by typing:
http://localhost:8000/d0oai32492384h24ui234nij23n4k2jnkjnkjn/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With