发布于 2014-12-06 08:57:30 | 1609 次阅读 | 评论: 1 | 来源: PHPERZ
Django Python WEB开发框架
Django是一个开放源代码的Web应用框架,由Python写成。采用了MVC的软件设计模式,即模型M,视图V和控制器C。它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的,即是CMS(内容管理系统)软件。并于2005年7月在BSD许可证下发布。这套框架是以比利时的吉普赛爵士吉他手Django Reinhardt来命名的。
本文为大家讲解的是Django程序错误 "AttributeError: 'module' object has no attribute 'Shell'" 解决方法,感兴趣的同学参考下。
错误描述:
运行django manage.py时出现如下错误:
[root@va3 hello]# python manage.py shell
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr b/python2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/usr b/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr b/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr b/python2.6/site-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/usr b/python2.6/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr b/python2.6/site-packages/django/core/management/commands/shell.py", line 29, in handle_noargs
shell = IPython.Shell.IPShell(argv=[])
AttributeError: 'module' object has no attribute 'Shell'
[root@va3 hello]#
解决方法:
sudo pip uninstall ipython
sudo pip install ipython==0.10