windows下Django无法创建superuser的问题
2013-04-11 18:38
211 查看
最开始是使用的Python3.2和Django1.4,创建超级用户失败:
You just installed Django's auth system, which means you don't have any superuse
rs defined.
Would you like to create one now? (yes/no): yes
不管输入什么,都会提示要求输入yes或no。开始以为是编码的问题,改setting.py配置,该操作系统编码、语言等,都没用,然后以为是Django版本对Python3.2兼容性问题,改为Django1.5,还是一样的问题。在网上找了很久,一直没有找到有人有提同类的问题。当时应该是自己搜索条件的问题吧。今天用关键词“windows django yes no”搜索,嘿,终于搜索到了一篇同样问题的帖子。其中提到“Apparently there was a bug in python 3.2 on windows
that added an extra character to strings when the built-in input function is used. I switched my default python installation to python 3.3 and hope Django 1.5 is fully compatible with it”。原来是Python3.2的BUG!重新安装Python3.3,终于解决了这个问题!
原帖地址:https://groups.google.com/forum/?fromgroups=#!topic/django-users/bPVDaTFtBAk(有可能会打不开)
You just installed Django's auth system, which means you don't have any superuse
rs defined.
Would you like to create one now? (yes/no): yes
不管输入什么,都会提示要求输入yes或no。开始以为是编码的问题,改setting.py配置,该操作系统编码、语言等,都没用,然后以为是Django版本对Python3.2兼容性问题,改为Django1.5,还是一样的问题。在网上找了很久,一直没有找到有人有提同类的问题。当时应该是自己搜索条件的问题吧。今天用关键词“windows django yes no”搜索,嘿,终于搜索到了一篇同样问题的帖子。其中提到“Apparently there was a bug in python 3.2 on windows
that added an extra character to strings when the built-in input function is used. I switched my default python installation to python 3.3 and hope Django 1.5 is fully compatible with it”。原来是Python3.2的BUG!重新安装Python3.3,终于解决了这个问题!
原帖地址:https://groups.google.com/forum/?fromgroups=#!topic/django-users/bPVDaTFtBAk(有可能会打不开)
相关文章推荐
- C#实现windows服务安装,服务名可配置时出问题(无法创建 ProjectInstaller 安装程序类型的实例)
- 2013 Mac Air 装Win7双系统问题-安装程序无法创建新的分区,也无法定位系统 & Windows无法安装所需的文件,错误代码0x80070570
- windows安装程序无法创建新的系统分区,也无法定位现有系统分区:问题解决.md
- 解决新创建的windows用户无法访问TFS的问题
- 解决Windows 2008无法创建线程问题
- 解决新创建的windows用户无法访问TFS的问题
- Windows 7 64位下解决不能创建Django项目问题
- 怎么解决安装windows系统无法创建新的分区的问题
- windows 无法访问GPO,事件ID1058、1030问题
- Samba 共享文件后在Windows 上无法访问的问题
- qt在windows下编译好的QT程序在其他没有安装QT的机器上会出现图标和图片无法正常显示的问题。
- struts2升级后无法创建对象访问问题
- 彻底解决安装win7、win8.1、win10系统出现“我们无法创建新的分区 也找不到现有的分区”的问题
- windows 无法分析或处理 pass 报错问题汇总
- Android开发中遇到的问题(三)——eclipse创建android项目无法正常预览布局文件
- 文档库创建的子文件夹的URL显示为 http://[机器名]/.... 导致无法正常访问的问题解决办法
- Visual Studio .NET 无法创建应用程序 。问题很可能是因为本地 Web 服务器上没有安装所需的组件
- linux 更改权限后也无法创建目录和文件问题处理
- Oracle创建唯一索引遇到的问题(ORA-01452: 无法 CREATE UNIQUE INDEX; 找到重复的关键字)