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)),

posted @ 2014-07-21 16:37  yunsicai  阅读(1307)  评论(0编辑  收藏  举报