wind部署python django 问题

pythondj 2017-07-21 11:38:57
C:\MicroWebs>python manage.py runserver
Performing system checks...

Unhandled exception in thread started by <function wrapper at 0x000000000409F898
>
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\utils\autor
eload.py", line 227, in wrapper
fn(*args, **kwargs)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\core\manage
ment\commands\runserver.py", line 125, in inner_run
self.check(display_num_errors=True)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\core\manage
ment\base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\core\manage
ment\base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\core\checks
\registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\core\checks
\urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\core\checks
\urls.py", line 26, in check_resolver
return check_method()
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\urls\resolv
ers.py", line 254, in check
for pattern in self.url_patterns:
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\utils\funct
ional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\urls\resolv
ers.py", line 405, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\utils\funct
ional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Python27\lib\site-packages\django-1.11.3-py2.7.egg\django\urls\resolv
ers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\MicroWebs\MicroWebs\urls.py", line 18, in <module>
from MicroWeb import views
File "C:\MicroWebs\MicroWeb\views.py", line 14, in <module>
import load_plugin
File "C:\MicroWebs\MicroWeb\load_plugin.py", line 4, in <module>
import chardet
ImportError: No module named chardet


版本都是最新的



代码是没有问题的。不考虑代码问题。

...全文
108 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
NG7711 2017-07-22
  • 打赏
  • 举报
回复
错误提示很清楚吧 ImportError: No module named chardet 安装这个包就可以了

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧