Chinaunix首页 | 论坛 | 博客
  • 博客访问: 570525
  • 博文数量: 80
  • 博客积分: 2393
  • 博客等级: 大尉
  • 技术积分: 1434
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-03 21:46
个人简介

己所不欲勿施于人!

文章分类

全部博文(80)

文章存档

2017年(1)

2016年(9)

2014年(1)

2013年(17)

2012年(5)

2011年(13)

2010年(9)

2009年(8)

2008年(17)

分类: Python/Ruby

2013-04-16 15:27:14

在windows xp 下安装了django 1.2.7 框架
   安装方法:
   python setup.py install

由于后来需要安装高版本,本来想安装 1.4.0 ,但是安装成了1.1.4版本。

所以重新执行命令,安装1.2.7版本   python setup.py install
但是,在启动web server时,始终报错
 python manage.py runserver
Unhandled exception in thread started by
.......

解决处理:
1.重新安装1.2.7 django ,依然出错。
2.删除 安装目录,重新安装,仍然没有解决问题。

3. 删除 D:\Python27\Lib\site-packages 目录下的django .以及Django-1.1.4-py2.7.egg-info . 重新安装django.

重新启动 python manage.py runserver

Validating models...
0 errors found

Django version 1.2.7, using settings 'mysite.settings'
Development server is running at
Quit the server with CTRL-BREAK.

问题解决。

阅读(2533) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~