- 博客(4)
- 收藏
- 关注
原创 'my_calendar' is not a valid tag library
错误信息:'my_calendar' is not a valid tag library: Template library my_calendar not found, tried django.templatetags.my_calendar,django.contrib.
2011-08-20 11:04:59 3253
转载 使用django自带的管理web新建一个超级管理员,但是登录进去却提示“你无权修改任何东西”
url.py取消 admin.autodiscover()的注释 即可。
2011-08-14 17:33:56 2870
转载 解决CSRF verification failed. Request aborted.的问题
django1.21加入了防止CSRF攻击的模块。 这是django的debug模式下给出的错误提示页面。Forbidden (403)CSRF verification failed. Request aborted.HelpReason
2011-08-02 21:52:34 1022
原创 格式化字符串%r
在python中格式化字符%r,表示打印的是对象day1 = "%r" % """hello,\nworld!"""day2 = "%s" % """hello,\nworld!"""print day1print day2结果为:'hello,\nw
2011-08-02 13:34:59 1476
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人