django 错误 : 'str' object is not callable 解决
来源:互联网 发布:淘宝智能版 一钻 编辑:程序博客网 时间:2024/05/16 16:23
错误提升:
TypeError at /blog
'str' object is not callable
Request Method:
GET
Request URL:
http://10.89.160.5:8889/blog
Django Version:
1.5.1
Exception Type:
TypeError
Exception Value:
'str' object is not callable
Exception Location:
/usr/lib/python2.6/site-packages/django/core/handlers/base.py in get_response, line 115
Python Executable:
/usr/bin/python
Python Version:
2.6.6
Python Path:
['/home/bruce/web/demotest/demo', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/python2.6/site-packages/webkit-1.0', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info']
Server time:
Tue, 16 Sep 2014 19:56:30 -0500
导致原因 通常是因为指定的 URL 在 Django 的 URL 处理系统中有”记录”(即己配置), 但是映射到 view 上时出错, 通常是找不到 view .
比如写错 url(r'^blog$','blog/views/index') ---->url(r'^blog$','blog.views.index')
- django 错误 : 'str' object is not callable 解决
- Django错误'str' object is not callable
- str' object is not callable
- python错误:TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- 有关python:'str' object is not callable
- 《Django学习》遇到的问题:“TypeError:'str' object is not callable"
- 关于错误:'str' object is not callable可能的原因之一
- 摔鸡蛋
- 公司面试题——Android内存管理
- 复习1
- 初学java单例的理解
- 聚集索引&非聚集索引
- django 错误 : 'str' object is not callable 解决
- 程序升级时跳转到应用程序的方法
- Understanding Python's "with" statement
- 数据结构第一章知识点导图
- android错误之android.content.res.Resources$NotFoundException
- sublime text 2 注册码
- AdaBoosting流程及数学证明
- 周工作报告140915
- [MVC4]ASP.NET MVC4+EF5(Lambda/Linq)读取数据