Chinaunix首页 | 论坛 | 博客
  • 博客访问: 314698
  • 博文数量: 61
  • 博客积分: 365
  • 博客等级: 一等列兵
  • 技术积分: 611
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-04 11:39
文章分类

全部博文(61)

文章存档

2017年(15)

2016年(13)

2015年(19)

2014年(12)

2013年(2)

我的朋友

分类: Python/Ruby

2017-03-30 15:50:57

摘自官方说明,django1.9以下版本,可以直接在settings.py的INSTALLED_APPS中添加debugtools
django大于1.9版本,除了要加debugtools,在TEMPLATES中还要进行如下添加,还需要在html模版中load一下,{% load debugtools_tags %}
INSTALLED_APPS += (
    'debugtools',
)

As of Django 1.9, either use {% load debugtools_tags %} or add the following to the settings:

	

点击(此处)折叠或打开

  1. 'builtins': [                 "debugtools.templatetags.debugtools_tags",             ],
阅读(726) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~