Re: Django ORM问题
"cougar2008" <[email protected]> Sun, 20 Jan 2008 22:38:25 +0800
| Newsgroups | gmane.comp.python.chinese |
|---|---|
| Message-ID | <[email protected]> |
还是跟结构有关系吧,应该按照正常的走吧,要不找不到你的模型定义的地方,所以没有执行结果吧 你 manage.py startapp xxx 试试,改下面的模型 cougar2008 2008-01-20 发件人: Handle.Huang 发送时间: 2008-01-20 21:31:01 收件人: [email protected] 抄送: 主题: [python-chinese]Django ORM问题 在Django中如果用 "python manage.py sqlall urus" 命令创建数据库脚本,但是没有效果,是否这个命令对目录结构有特殊要求,因为这里我修改了默认的结构,如果在不修改结构的情况下,要如果做? urus │ urls.py │ urls.pyc │ __init__.py │ __init__.pyc │ ├─models │ projects.py │ __init__.py │ __init__.pyc │ └─views main.py main.pyc __init__.py __init__.pyc_______________________________________________ python-chinese Post: send [email protected] Subscribe: send subscribe to [email protected] Unsubscribe: send unsubscribe to [email protected] Detail Info: http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese Post: send [email protected] Subscribe: send subscribe to [email protected] Unsubscribe: send unsubscribe to [email protected] Detail Info: http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese Post: send [email protected] Subscribe: send subscribe to [email protected] Unsubscribe: send unsubscribe to [email protected] Detail Info: http://python.cn/mailman/listinfo/python-chinese