在 webfaction 上安装 django
我正在尝试在 Webfaction 上安装 django,并且我有一个与教程中类似的所有步骤: http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction
但是当我尝试同步数据库时,如果我输入 python2.5 manage.pysyncdb --我得到的所有内容:用法:manage.pysyncdb [选项]
为 INSTALLED_APPS 中尚未创建表的所有应用程序创建数据库表。
Manage.py:错误:没有这样的选项:--all
如果我输入manage.pysyncdb,我得到错误:无法导入设置'osqa.settings'(它在sys.path上吗?它有语法错误吗?):否 我已经像教程中那样设置了名为设置的模块
...settings.py 中的导入行有问题: from settings_local import * 就好像我评论说我从 if DEBUG 行收到错误...我错在哪里???所有文件都具有相同的权限 - 617,我无法更改权限,而且我也不认为权限有问题。谢谢!
I am trying to install django on Webfaction, and i have one all the steps like in the tutorial here: http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction
But when i am trying to synchronyse the database, if i enter python2.5 manage.py syncdb --all i get: Usage: manage.py syncdb [options]
Create the database tables for all apps in INSTALLED_APPS whose tables haven't already been created.
manage.py: error: no such option: --all
if i enter manage.py syncdb i get Error: Could not import settings 'osqa.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings
i have set all like in the tutorial...is a problem with the import line in settings.py : from settings_local import * as if i comment that i get an error from if DEBUG line... Where am i wrong??? all the files have the same rights - 617 and i cannot change the rights, also i don;t think is a problem with rights. thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在设置文件中启用 DEBUG,看看是否收到任何进一步的故障指示。某处路径有问题。您还可以尝试在 osqa 目录中运行 python 并输入 import settings_local 来查看您得到的结果。
Try enabling DEBUG in the settings file to see if you get any further indication of the failure. There is a path problem somewhere. You could also try running python in the osqa directory and enter import settings_local to see what you get.