Groups
Groups
Sign in
Groups
Groups
QDA_SW_TA
Conversations
About
Send feedback
Help
python django框架使用 django-admin.py startproject [project]命令无法创建项目的问题
26 views
Skip to first unread message
Chris
unread,
Mar 13, 2013, 11:48:20 AM
3/13/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qda_...@googlegroups.com
如果你在使用: django-admin.py startproject testproject 这个命令创建django项目的时候,一直提示你语法错误。那么恭喜你,中奖了。
为什么前两天还好好的命令如今都不行了呢? 回想一下你是不是修改了.py文件的打开方式? 是不是?如果是的话,那就对了。py文件的默认打开方式被修改后,使用该命令的时候,该命令会按照默认的py文件打开方式去执行,结果一直错误,解决方法是: 把python安装目录下的script目录下的 django-admin.py拷贝到你需要创建项目的目录中,其他方法还在探索中。
Reply all
Reply to author
Forward
0 new messages