django-adminlte-ui 1.2.0 發布啦
1.2.0
該版本新增了對站點標題,站點標頭,站點LOGO及歡迎標語的自定義,通過models中的options及templatetags實現。並在options表的基礎上提供general_option頁面進行快速設置,同時只需要在templates頁面中載入adminlte_options這個templatetags即可使用options表中的自定義配置。
examples:
# adminlte/general_option.html
{% load adminlte_options %}
# here my option_name is site_title, you can custom yourself.
{% get_adminlte_option 'site_title' as adminlte_site_title %}
{% if adminlte_site_title.valid %}
{{ adminlte_site_title.site_title }}
{% else %}
{{ site_title|default:_('Django site admin') }}
{% endif %}
更新日誌
django_admin_settings
;
[admin
]