无模块命名backends.simple.urls
问题描述:
我有,在这个问题陈述了类似的问题:No module named backends.default.urls 不过,我试图用简单的后端,所以只是做include('registration.backends.simple.urls')
并不完全削减对我。无模块命名backends.simple.urls
有谁知道我怎么能做简单的后端Django注册工作?
答
我想出了答案:通过替换在很行 我通过django-registration==0.7
安装的Django登记在我的requirements.txt文件 我代替最先进的最新版本的Django的注册(0.8)我要求与hg+https://bitbucket.org/ubernostrum/django-registration
。
或者,您只需致电pip install hg+https://bitbucket.org/ubernostrum/django-registration
答
这应该工作:
include('registration.backends.simple.urls')
它与the actual urls module一致。如果不起作用,请升级到bitbucket版本。