小编Der*_*rek的帖子

Django太慢了?errno 32破管?dcramer-Django的sentry-?静态文件夹?

我一直在Ubuntu 10.10上使用Django 1.3和Python 2.6.我有3个问题.

  1. 我记得在我刚刚使用Django时在Windows 7上出现此问题.但是,我还记得当我第一次使用Django时,这个问题没有发生.

当我访问Django via时127.0.0.1:8000,在开始一个全新的项目后,我可以到达该网站,但有时它需要10-20秒,有时需要更多才能到达它.此外,在我几乎没有工作的项目上,我遇到了同样的问题,并且还会出现以下错误:

Exception happened during processing of request from ('127.0.0.1', 47758)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 283, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 309, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/servers/basehttp.py", line 570, in __init__
    BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  File "/usr/lib/python2.6/SocketServer.py", line 618, in __init__
    self.finish()
  File "/usr/lib/python2.6/SocketServer.py", line 661, in finish
    self.wfile.flush()
  File "/usr/lib/python2.6/socket.py", line 297, in flush
    self._sock.sendall(buffer(data, write_offset, …
Run Code Online (Sandbox Code Playgroud)

python django performance

9
推荐指数
2
解决办法
8795
查看次数

标签 统计

django ×1

performance ×1

python ×1