我一直在Ubuntu 10.10上使用Python 2.6的Django 1.3。我有3個問題。Django真的很慢嗎? errno 32破管? dcramer-Django的sentry-?靜態文件夾?
- 我記得我在前一段時間使用Django時遇到了這個問題。不過,我還記得當我第一次使用Django時,這個問題沒有發生。
當我通過127.0.0.1:8000
訪問的Django,開始一個全新的項目後,我到達現場,但有時它需要一個良好的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, buffer_size))
error: [Errno 32] Broken pipe
而且,只要我得到一個錯誤,我希望dcramer's django-sentry將錯誤記錄在數據庫中,但是當我進入MySQL並檢查表時,沒有任何內容。我按照網站上的說明安裝應用程序。
我把這個在我的urls.py文件:
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/user/apache2/www/django/ecomstore/static',})
然而,當我去127.0.0.1:8000/static/css.css
我找不到我把文件夾中的文件。我做錯了什麼?
感謝您的幫助!
請考慮那種答案的問題評論。 – Onik 2014-05-05 23:51:57