Django对ajax支持不好?
来源:互联网 发布:怎么查看自己的淘宝号 编辑:程序博客网 时间:2024/04/29 04:29
用django 开发的一个json webservice, 用jQuery发一个get 访问, 老是crash。 但如果用浏览器地址输入请求,能够返回数据,用AnjularJs也能返回数据。奇了怪! 用firefox 查看http request header,觉得唯一的差别是jQuery有: X-Requested-With:"XMLHttpRequest"
看来是Django对ajax支持不好?
错误信息如下:
----------------------
[07/Feb/2015 17:49:42] "GET /s/whereJquery2.htm HTTP/1.1" 200 1332
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 52491)
----------------------------------------
[07/Feb/2015 17:49:58] "GET /t/l/930871/?p=rhiu HTTP/1.1" 200 95
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
self.finish_response()
File "/usr/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
self.write(data)
File "/usr/lib/python2.7/wsgiref/handlers.py", line 212, in write
self.send_headers()
File "/usr/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
self.send_preamble()
File "/usr/lib/python2.7/wsgiref/handlers.py", line 194, in send_preamble
'Date: %s\r\n' % format_date_time(time.time())
File "/usr/lib/python2.7/socket.py", line 324, in write
self.flush()
File "/usr/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
[07/Feb/2015 17:49:58] "GET /t/l/930871/?p=rhiu HTTP/1.1" 500 59
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python2.7/dist-packages/django/core/servers/basehttp.py", line 129, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
self.wfile.close()
File "/usr/lib/python2.7/socket.py", line 279, in close
self.flush()
File "/usr/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
- Django对ajax支持不好?
- IE对SVG支持不好
- WinXP 对Sis900网卡的支持不好
- IE对img.width支持不好
- bcb6.0对nvarchar格式支持不好。
- jquery对iframe支持不好的解决办法
- 解决Boost.Regex对中文支持不好的问题
- Sun的JDK对尾递归支持不好
- 解决Boost.Regex对中文支持不好的问题收藏
- 解决Boost.Regex对中文支持不好的问题
- 解决Boost.Regex对中文支持不好的问题
- delphi 的 pos 函数 对中文支持不好。
- 解决Boost.Regex对中文支持不好的问题
- gdal库对ENVI文件的一点支持不好
- IOS系统对position:fixed支持不好的解决方法
- 解决RAPIDxml对UTF-16/UNICODE支持不好的方法
- ThinkPHP对Ajax完全支持
- Struts 对 Ajax的支持
- phpmyadmin 尝试连接到 mysql 服务器 但服务器拒绝连接
- Java基础知识:网络编程
- Java基础知识:反射
- arm-linux-gcc的官方源码寻找过程
- linux sendEmail工具发送邮件
- Django对ajax支持不好?
- linux mutt+msmtp工具发送邮件
- 自定义cell的用法
- Myeclipse 2014 javascript 添加 jquery 代码提示
- codeforces_rockethon2015 A. Game
- Scramble String
- 黄牛:有我们这些专业人员在 一般人不可能抢到票
- 男方患白血病女方引产胎儿 律师:没领证不违法
- OpenCV2学习笔记(一):图像的基本操作