[Python] Let's change the URL of the Django administrator site

Introduction

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.

Try to change

Very easy.

urls.py


urlpatterns = [
    # path('admin/', admin.site.urls), #The default is admin
    path('admin-custom-url/', admin.site.urls),
]

the end

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

[Python] Let's change the URL of the Django administrator site
Change the Python version of Homebrew
Change the length of Python csv strings
[Note] Export the html of the site with python.
the zen of Python
The wall of changing the Django service from Python 2.7 to Python 3
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 1 ~
Let's break down the basics of TensorFlow Python code
Let's use the Python version of the Confluence API module.
[Django] Change the Default IP address of the runserver command
Let's use the open data of "Mamebus" in Python
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 2 ~
Get the URL of the HTTP redirect destination in Python
Completely translated the site of "The Hitchhiker's Guide to Python"
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 3 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 4 ~
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 5 ~
[Machine learning] "Abnormality detection and change detection" Let's draw the figure of Chapter 1 in Python.
Towards the retirement of Python2
Change the theme of Jupyter
Change the style of matplotlib
About the features of Python
The Power of Pandas: Python
Let's touch the API of Netatmo Weather Station with Python. #Python #Netatmo
How to change the log level of Azure SDK for Python
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
Change the background of Ubuntu (GNOME)
[Python] Let's reduce the number of elements in the result in set operations
Existence from the viewpoint of Python
pyenv-change the python version of virtualenv
Feel free to change the label of the legend in Seaborn in python
[Python] Understanding the potential_field_planning of Python Robotics
Review of the basics of Python (FizzBuzz)
Let's summarize the degree of coupling between modules with Python code
The meaning of ".object" in Django
About the basics list of Python basics
Let's decide the winner of bingo
[Python] Change the alphabet to numbers
Learn the basics of Python ① Beginners
Change the saturation and brightness of color specifications like # ff000 in python 2.5
Let's change the color scheme of iTerm2 automatically depending on the time zone
Consider the description of Dockerfile (Django + MySQL②)
I tried the asynchronous server of Django 3.0
[Blender x Python] Let's master the material !!
Understand the benefits of the Django Rest Framework
Django ~ Let's display it in the browser ~
Script to change the description of fasta
How to check the version of Django
Pass the path of the imported python module
The story of making Python an exe
Learning notes from the beginning of Python 1
Check the existence of the file with python
About the virtual environment of python version 3.7
[Python] Understand the content of error messages
Check if the URL exists in Python
[Python3] Rewrite the code object of the function
I didn't know the basics of Python
Let's read the RINEX file with Python ①
Let's summarize the Python coding standard PEP8 (1)
Let's observe the Python Logging cookbook SocketHandler