您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – 没有名为registration.backends.default.urls的模块

5b51 2022/1/14 8:20:52 python 字数 4078 阅读 525 来源 www.jb51.cc/python

这个主题肯定与this topic有关,但根据批准的答案和相关评论,修复方法是将registration.backends.default.urls更改为registration.urls.当我尝试相同的错误是相同的,但使用registration.urls而不是registration.backends.default.urls.P.Sjjango.con

概述

这个主题肯定与this topic有关,但根据批准的答案和相关评论,修复方法是将registration.backends.default.urls更改为registration.urls.当我尝试相同的错误是相同的,但使用registration.urls而不是registration.backends.default.urls.

P.Sjjango.contrib.auth被添加到INSTALLED_APPS中

Environment:



Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/register/

Django Version: 1.4.2
Python Version: 2.7.3
Installed 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 
  
   __init__.py" in include
  24.         
   URLconf_module = import_module(
   URLconf_module)
File "C:\Python27\lib\site-packages\django-1.4.2-py2.7.egg\django\utils\importlib.py" in import_module
  35.     __import__(name)

Exception Type: ImportError at /accounts/register/
Exception Value: No module named registration.backends.default.urls

  

pip install django-registration

总结

以上是编程之家为你收集整理的python – 没有名为registration.backends.default.urls的模块全部内容,希望文章能够帮你解决python – 没有名为registration.backends.default.urls的模块所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶