
这个主题肯定与this topic有关,但根据批准的答案和相关评论,修复方法是将registration.backends.default.urls更改为registration.urls.当我尝试相同的错误是相同的,但使用registration.urls而不是registration.backends.default.urls.
P.Sjjango.contrib.auth被添加到INSTALLED_APPS中
Environment:Request Method: GETRequest URL: http://127.0.0.1:8000/accounts/register/Django Version: 1.4.2Python Version: 2.7.3Installed Applications:('django.contrib.auth','django.contrib.ContentTypes','django.contrib.sessions','django.contrib.sites','django.contrib.messages','django.contrib.staticfiles','oauth2app','django.contrib.admin','uni_form','server')Installed MIDdleware:('django.mIDdleware.common.CommonMIDdleware','django.contrib.sessions.mIDdleware.SessionMIDdleware','django.mIDdleware.csrf.CsrfVIEwMIDdleware','django.contrib.auth.mIDdleware.AuthenticationMIDdleware','django.contrib.messages.mIDdleware.MessageMIDdleware')Traceback:file "C:\Python27\lib\site-packages\django-1.4.2-py2.7.egg\django\core\handlers\base.py" in get_response 101. request.path_info)file "C:\Python27\lib\site-packages\django-1.4.2-py2.7.egg\django\core\urlresolvers.py" in resolve 298. for pattern in self.url_patterns:file "C:\Python27\lib\site-packages\django-1.4.2-py2.7.egg\django\core\urlresolvers.py" in url_patterns 328. patterns = getattr(self.URLconf_module,"urlpatterns",self.URLconf_module)file "C:\Python27\lib\site-packages\django-1.4.2-py2.7.egg\django\core\urlresolvers.py" in URLconf_module 323. self._URLconf_module = import_module(self.URLconf_name)file "C:\Python27\lib\site-packages\django-1.4.2-py2.7.egg\django\utils\importlib.py" in import_module 35. __import__(name)file "C:\Users\Roel\workspace\ts-server\tsserver\tsserver\urls.py" in 最佳答案我必须先安装django-registration(似乎只是逻辑:-s)pip install django-registration
总结以上是内存溢出为你收集整理的python – 没有名为registration.backends.default.urls的模块全部内容,希望文章能够帮你解决python – 没有名为registration.backends.default.urls的模块所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)