歡迎您光臨本站 註冊首頁

django-adminlte-ui 1.2.0 發布, 基於adminlte的Django後台模板

←手機掃碼閱讀     admin @ 2019-07-03 , reply:0

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 %}

更新日誌

  1. add models with options;
  2. add general_option.html to manager general option;
  3. setup app label to django_admin_settings;
  4. register and add general_option into menu;
  5. add docs.

[admin ]

來源:OsChina
連結:https://www.oschina.net/news/107951/django-adminlte-ui-1-2-0-released
django-adminlte-ui 1.2.0 發布, 基於adminlte的Django後台模板已經有394次圍觀

http://coctec.com/news/all/show-post-208836.html