pip安装django-registration报错:No module named backends.default.urls 解决方法

作者:我就是个世界 发表于:2011-08-23
直接使用[code]pip install django-registration[/code]安装django-registration报错:[code]No module named backends.default.urls[/code]
原因是pip安装的版本并不是最新版,如果按照官方的快速指南配置的话:
[code]
from registration.backends import get_backend
    (r'^accounts/', include('registration.backends.default.urls')),
[/code]
就会出现上面的错误。

解决方法是:直接在官方下载默认版本安装即可!
[url=https://bitbucket.org/ubernostrum/django-registration]https://bitbucket.org/ubernostrum/django-registration[/url]

[color=#FF0000][b]2011年11月13日补充:[/b][/color]
另外,默认的源码包里没有django-registration模板文件,需要自己添加,这里有一个不错的模板应用,需要的可以看一下或者做一下参考:[url=https://github.com/yourcelf/django-registration-defaults]django-registration-defaults[/url]

参考文档:http://stackoverflow.com/questions/1959511/django-registration-template

分享:

扫一扫在手机阅读、分享本文

请发表您的评论