简体   繁体   English

Django Manage.py不提供南方命令

[英]Django Manage.py Gives No South Commands

When I do a "./manage.py help", it gives me NO south commands, although South has been installed. 当我执行“./manage.py帮助”时,虽然安装了South,但它没有向南发出命令。

I have the latest version of south installed for my django project, which is South==0.8.1. 我为我的django项目安装了最新版本的南方版,南方== 0.8.1。

I have added "south" to my INSTALLED_APPS in settings.py 我在settings.py中的“INSTALLED_APPS”中添加了“south”

I have done a manage.py syncdb, and there is a "south_migrationhistory" database table created. 我已经完成了manage.py syncdb,并且创建了一个“south_migrationhistory”数据库表。

However, when I do a "./manage.py help", it gives me NO south commands. 但是,当我执行“./manage.py帮助”时,它给了我没有南命令。

I have tried uninstalling and re-installing south, but I still get no south commands when I do a ./manage.py help 我尝试卸载并重新安装南,但是当我执行./manage.py帮助时,我仍然没有得到南命令

Any suggestions would be greatly appreciated. 任何建议将不胜感激。

thanks 谢谢

如果你已经在virtualenv中安装了South,那么一旦你进入virtualenv,尝试执行python manage.py help而不是./manage.py help

If you're using virtualenv, ensure that it is activated when running ./manage.py help command. 如果您正在使用virtualenv,请确保在运行./manage.py help命令时激活它。 Django will just pass all import errors when showing available commands. Django将在显示可用命令时传递所有导入错误。

You might want to check if the INSTALLED_APPS is not overwritten somewhere outside the settings.py file. 您可能想要检查是否在settings.py文件之外的某处覆盖了INSTALLED_APPS。 Eg if you are using a separate settings file for a local settings. 例如,如果您使用单独的设置文件进行本地设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM