卡住Django错误:没有模块命名注册 [英] Getting stuck at Django error: No module named registration

查看:250
本文介绍了卡住Django错误:没有模块命名注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了注册模块,将其添加到settings.py。当我尝试运行syncdb(%python sitename / manage.py syncdb --settings sitename.devsettings)



它给了我错误:没有模块命名注册 p>

同样的设置可以在服务器上正常工作(使用相同的文件)。这在我运行OS X的本地机器上发生。



我检查了sys.path,列出了注册模块驻留的路径,实际的模块也位于。由于没有其他的输出,我不知道如何进一步调试。可能会导致此问题?

解决方案

您的注册可能存在Python错误型号。尝试启动shell并导入它们,实例化它们等。


I installed the registration module, added it to settings.py. When I tried to run syncdb (% python sitename/manage.py syncdb --settings sitename.devsettings)

It gave me "Error: No module named registration"

The same setup works (using the same files for everything) fine on the server. This happens on my local machine running OS X.

I checked the sys.path, the path where registration module resides is listed, and the actual module is in place as well. Since there is not much else being outputted, I am not sure how to debug further. What could be causing this problem?

解决方案

There may be Python errors in your registration models. Try starting a shell and importing them, instantiating them, etc.

这篇关于卡住Django错误:没有模块命名注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆