首页 新闻 会员 周边 捐助

django调试出现错误,求大神指导

0
悬赏园豆:5 [已关闭问题] 关闭于 2011-11-18 10:27

0 errors found
Django version 1.3.1, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File "D:\Python25\lib\site-packages\django\core\servers\basehttp.py", line 284, in run
self.finish_response()
File "D:\Python25\lib\site-packages\django\core\servers\basehttp.py", line 324, in finish_response
self.write(data)
File "D:\Python25\lib\site-packages\django\core\servers\basehttp.py", line 403, in write
self.send_headers()
File "D:\Python25\lib\site-packages\django\core\servers\basehttp.py", line 467, in send_headers
self.send_preamble()
File "D:\Python25\lib\site-packages\django\core\servers\basehttp.py", line 385, in send_preamble
'Date: %s\r\n' % http_date()
File "D:\Python25\lib\socket.py", line 261, in write
self.flush()
File "D:\Python25\lib\socket.py", line 248, in flush
self._sock.sendall(buffer)
error: (10053, 'Software caused connection abort')
[09/Nov/2011 14:42:19] "GET / HTTP/1.1" 500 144580

 

 

编译也错误。。。

Finding files... done.
Importing test modules ... Traceback (most recent call last):
File "D:\eclipse\plugins\org.python.pydev.debug_2.2.2.2011082312\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
File "D:\myspace\mysite\mysite\urls.py", line 2, in <module>
from mysite.views import hello,current_time
ImportError: No module named mysite.views
ERROR: Module: urls could not be imported (file: D:/myspace/mysite/mysite/urls.py).
done.

 

我在mysite文件夹下已经定义了views.py里的hello函数和current_time函数

Miss_Ay的主页 Miss_Ay | 初学一级 | 园豆:176
提问于:2011-11-09 14:46
< >
分享
所有回答(1)
0

__init__.py加了么?

chameleon | 园豆:311 (菜鸟二级) | 2011-11-12 16:56
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册