django admin site beautification

 

usedjango-simpleui

installation

  pip install  django-simpleui

Source Address

  https://github.com/newpanjing/simpleui

django configuration:

  To be applied to the first row;

Online use:

  You need to \ copy python \ Lib \ site-packages \ simpleui \ admin under static directory to nginx specified static files in a directory; you can also download the source;

Home and modify the login page headline:

  Add py file   

from django.contrib import admin
  
admin.site.site_header = 'EasyTest-后台管理'
admin.site.site_title = 'EasyTest-Manage'

favicon Review:

  \ Python \ Lib \ site-packages \ simpleui \ templates \ admin need to modify two places, increasing the <link rel = "icon" href = "{% static '/img/E_fa.png'%}">:

   1.login.html

   2.base.html

 

Beautify the admin page:

 

 

Reference Address: Click here

Guess you like

Origin www.cnblogs.com/changqing8023/p/11120826.html