Make sure <1>MIDDLEWARE_CLASSES<2> contains <3>'django.middleware.common.CommonMiddleware'<4> , <5>'django.contrib.sessions.middleware.SessionMiddleware'<6> and <7>'django.contrib.auth.middleware.AuthenticationMiddleware'<8> . (Again, if you're following along, note that we commented them out in Chapter 5, so uncomment them.)

(* 注意:由于翻译工作开始进入复审阶段,您提交的内容将会作为参考建议,谢谢您的宝贵建议。 *)