瀏覽代碼

Fixed #12795 - Updated the middleware docs to include the messages app middleware. Thanks, Timo.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Jannis Leidel 15 年之前
父節點
當前提交
1559f64549
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/topics/http/middleware.txt

+ 1 - 0
docs/topics/http/middleware.txt

@@ -31,6 +31,7 @@ created by :djadmin:`django-admin.py startproject <startproject>`::
         'django.contrib.sessions.middleware.SessionMiddleware',
         'django.middleware.csrf.CsrfViewMiddleware',
         'django.contrib.auth.middleware.AuthenticationMiddleware',
+        'django.contrib.messages.middleware.MessageMiddleware,
     )
 
 During the request phases (:meth:`process_request` and :meth:`process_view`