没有名为blog.urls的模块

时间:2011-02-25 07:43:23

标签: django

最近发现了一个django的博客

稍后安装到自己的电脑

跑起来出现这种错误,如何解决?

No module named blog.urlsRequest Method: GET 
Request URL: http://127.0.0.1:8000/ 
Django Version: 1.2.4 
Exception Type: ImportError 
Exception Value: No module named blog.urls 
Exception Location: C:\Python25\Lib\site-packages\django\utils\importlib.py in import_module, line 35 
Python Executable: C:\Python25\python.exe 
Python Version: 2.5.1 
Python Path: ['E:\\source\\DjangoBlog\\DjangoBlog', 'C:\\Python25\\lib\\site-packages\\setuptools-0.6c7-py2.5.egg', 'C:\\Python25\\lib\\site-packages\\simplejson-2.0.9-py2.5.egg', 'E:\\source\\DjangoBlog\\DjangoBlog\\src', 'C:\\Python25', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\site-packages', 'C:\\WINDOWS\\system32\\python25.zip', 'D:\\ecliipse\\eclipse-java-helios-SR1-win32\\eclipse\\plugins\\org.python.pydev_1.6.3.2010100513\\PySrc', 'C:\\Python25\\lib\\site-packages\\PIL'] 
Server time: Fri, 25 Feb 2011 15:36:58 +0800 

1 个答案:

答案 0 :(得分:1)

根据Python Path E:\ source \ DjangoBlog \ DjangoBlog - DjangoBlog是你的项目所在的目录?博客目录在哪里?如果没有尝试将项目目录重命名为'blog'