Module “django.core.context_processors” does not define a “auth” callable request processor

关于Module “django.core.context_processors” does not define a “auth” callable request processor的解决方案

修改一下django.conf下的global_setting
# old
TEMPLATE_CONTEXT_PROCESSORS = ("django.core.context_processors.auth",
                               ...
)
# new
TEMPLATE_CONTEXT_PROCESSORS = ("django.contrib.auth.context_processors.auth",
                               ...
)


你可能感兴趣的:(django,python,python,学习笔记)