首页 > 代码库 > django错误-NoReverseMatch at /admin/

django错误-NoReverseMatch at /admin/

错误提示:

NoReverseMatch at /admin/
Reverse for ‘logout‘ with arguments ‘()‘ and keyword arguments ‘{}‘ not found.

 

解决方式:

将urls.py中
(r‘^admin/$‘, include(admin.site.urls)),
改成
(r‘^admin/‘, include(admin.site.urls)),