Modify Title and Header Django Admin Interface

Small customization django admin site. Oficial doc here.
Jump to summarized section in the end of the article for short version.

Modify Site Header

Default login page and admin interface

add code below in project_folder/urls.py

Modified site header

Modify Site Title
add code below in project_folder/urls.py

Default vs Customized Site Title

Modify Index Title “Site Administration”
add code below in project_folder/urls.py

Modified index_title

Modify Site URL
By default Django Admin interface provides “View site” link and redirect to “/” or http://127.0.0.1:8000/ for local default. We can change to other urls, /admin for example by add code below in project_folder/urls.py.

‘view site’ link will redirect to ‘/admin’ link

Summarized Section
add code below project_folder/urls.py.
#Modify Site Header
admin.site.site_header = ‘Book List Administration’
#Modify Site Title
admin.site.site_title = ‘Book Site’
#Modify Site Index Title
admin.site.index_title = ‘Book Site Administration’
#Modify Site URL
admin.site.site_urls= ‘/admin’

--

--

Software Engineer, Indonesia

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store