E
E
eugenusov2016-08-28 22:33:39
Django
eugenusov, 2016-08-28 22:33:39

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

5 answer(s)
P
planc, 2016-08-29
@planc

https://github.com/dmpayton/django-admin-honeypot

E
Egor Kazantsev, 2016-08-29
@saintbyte

How complicated everything is, first try this:
url(r'^admin/', admin.site.urls), in url(r'^admin121231312313131312/', admin.site.urls),

P
Pavel Aksenov, 2016-08-30
@hellmin

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

U
un1t, 2016-08-29
@un1t

basic auth on the web server side

V
vitalvas, 2016-09-01
@vitalvas

Make a dynamic address of the admin panel through a function and a custom page for login

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question