django-adminlte-ui 1.2.0 发布, 基于adminlte的Django后台模板

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.

猜你喜欢

转载自www.oschina.net/news/107951/django-adminlte-ui-1-2-0-released