1. 错误信息:djdt’is not a registered namespace
解决:在 url 中添加如下代码
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r’__debug__/’,include(debug_toolbar.urls)),
] + urlpatterns
1. 错误信息:djdt’is not a registered namespace
解决:在 url 中添加如下代码
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r’__debug__/’,include(debug_toolbar.urls)),
] + urlpatterns