Answer the question
In order to leave comments, you need to log in
How to hide Django admin?
Hello! In general, this is my situation. I'm making a site in Django, something about local media. As you know, django has a standard admin panel located at /admin. Of course, it can be moved to another URL, but I would like to know other ways to hide the admin panel from prying eyes. You can, of course, allow only by IP, but customers wanted the ability to work from anywhere. Thank you for your attention and replies.
Answer the question
In order to leave comments, you need to log in
How complicated everything is, first try this:
url(r'^admin/', admin.site.urls), in url(r'^admin121231312313131312/', admin.site.urls),
You can close the address through basic authentication https://www.digitalocean.com/community/tutorials/h...
You can move the admin panel to another domain. To do this, you will need to create 3 additional files:
Accordingly, after the admin panel is removed to another domain on the main domain, remove access to the admin panel from urls.py
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question