xadmin Global Configuration

Copyright: bloggers without consent, is prohibited reprint. Thank you! https://blog.csdn.net/cp_123321/article/details/86084859

1. navigation app is set to Chinese name, find the file in the app apps.py

Find the current app's __init__.py files, configuration settings Path app Chinese name of the class

default_app_config = 'main.apps.MainConfig'

2. Set Background collation of a field, set the current app in a field is read-only, can not be modified, adminx.py find the file in the current app

About related configuration, refer to blog https://blog.csdn.net/cp_123321/article/details/86068433

3. Set Background list page can directly modify the contents of the field, find the file in the app adminx.py

4. Set Background list page, set up auto-refresh, which is a plug-in xadmin / plugins / refresh.py in

Adminx.py find files in the app

 

 

 

 

Guess you like

Origin blog.csdn.net/cp_123321/article/details/86084859