The one I follow is to set an environment variable to see if it’s a public facing instance or a private one (disconnected from the internet) and use that as a condition, which when true will add some urls.

It’s the same pattern you’ll follow when using something like Django debug toolbar - where you check if debug is true and if it is, you add some more urls to the root urlconf conf.

Hope that helps.

P.s. This is the mailing list for contributions to Django itself. Questions about how to use django are better suited in the Django Users mailing list or the forums.

Onward,
Arvind


On 10 Nov 2020, at 14:46, Shoury Sharma wrote:

Hello everyone!
I was going though idea of admin page but sometimes it can be a security
concern regarding access of admin stuff by URL/admin.
I would therefore like to give a suggestions regarding the URL/admin to be some key which only the owners would have access to so the user can never have anyway to check admin by penetrating into it in any malicious way.
Generous regards,
Shoury Sharma

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/46bf01ff-dc32-47ff-92bc-c56c260a9f29n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/10669A3E-5DBB-46C8-8CF3-411C7DC149CC%40gmail.com.

Reply via email to