Ticket #1998: single-quotes-plus-docs.diff
File single-quotes-plus-docs.diff, 5.4 KB (added by , 18 years ago) |
---|
-
django/conf/global_settings.py
219 219 # this middleware classes will be applied in the order given, and in the 220 220 # response phase the middleware will be applied in reverse order. 221 221 MIDDLEWARE_CLASSES = ( 222 "django.contrib.sessions.middleware.SessionMiddleware",223 "django.contrib.auth.middleware.AuthenticationMiddleware",224 # "django.middleware.http.ConditionalGetMiddleware",225 # "django.middleware.gzip.GZipMiddleware",226 "django.middleware.common.CommonMiddleware",227 "django.middleware.doc.XViewMiddleware",222 'django.contrib.sessions.middleware.SessionMiddleware', 223 'django.contrib.auth.middleware.AuthenticationMiddleware', 224 # 'django.middleware.http.ConditionalGetMiddleware', 225 # 'django.middleware.gzip.GZipMiddleware', 226 'django.middleware.common.CommonMiddleware', 227 'django.middleware.doc.XViewMiddleware', 228 228 ) 229 229 230 230 ############ -
django/conf/project_template/settings.py
51 51 ) 52 52 53 53 MIDDLEWARE_CLASSES = ( 54 "django.middleware.common.CommonMiddleware",55 "django.contrib.sessions.middleware.SessionMiddleware",56 "django.contrib.auth.middleware.AuthenticationMiddleware",57 "django.middleware.doc.XViewMiddleware",54 'django.middleware.common.CommonMiddleware', 55 'django.contrib.sessions.middleware.SessionMiddleware', 56 'django.contrib.auth.middleware.AuthenticationMiddleware', 57 'django.middleware.doc.XViewMiddleware', 58 58 ) 59 59 60 60 ROOT_URLCONF = '{{ project_name }}.urls' -
docs/cache.txt
209 209 ================== 210 210 211 211 Once the cache is set up, the simplest way to use caching is to cache your 212 entire site. Just add `` django.middleware.cache.CacheMiddleware`` to your212 entire site. Just add ``'django.middleware.cache.CacheMiddleware'`` to your 213 213 ``MIDDLEWARE_CLASSES`` setting, as in this example:: 214 214 215 215 MIDDLEWARE_CLASSES = ( 216 "django.middleware.cache.CacheMiddleware",217 "django.middleware.common.CommonMiddleware",216 'django.middleware.cache.CacheMiddleware', 217 'django.middleware.common.CommonMiddleware', 218 218 ) 219 219 220 220 (The order of ``MIDDLEWARE_CLASSES`` matters. See "Order of MIDDLEWARE_CLASSES" -
docs/csrf.txt
17 17 18 18 How to use it 19 19 ============= 20 Add the middleware `` "django.contrib.csrf.middleware.CsrfMiddleware"`` to20 Add the middleware ``'django.contrib.csrf.middleware.CsrfMiddleware'`` to 21 21 your list of middleware classes, ``MIDDLEWARE_CLASSES``. It needs to process 22 22 the response after the SessionMiddleware, so must come before it in the 23 23 list. It also must process the response before things like compression -
docs/middleware.txt
23 23 ``django-admin.py startproject``:: 24 24 25 25 MIDDLEWARE_CLASSES = ( 26 "django.middleware.common.CommonMiddleware",27 "django.contrib.sessions.middleware.SessionMiddleware",28 "django.contrib.auth.middleware.AuthenticationMiddleware",29 "django.middleware.doc.XViewMiddleware",26 'django.middleware.common.CommonMiddleware', 27 'django.contrib.sessions.middleware.SessionMiddleware', 28 'django.contrib.auth.middleware.AuthenticationMiddleware', 29 'django.middleware.doc.XViewMiddleware', 30 30 ) 31 31 32 32 Django applies middleware in the order it's defined in ``MIDDLEWARE_CLASSES``, -
docs/sessions.txt
14 14 15 15 Turn session functionality on and off by editing the ``MIDDLEWARE_CLASSES`` 16 16 setting. To activate sessions, make sure ``MIDDLEWARE_CLASSES`` contains 17 `` "django.contrib.sessions.middleware.SessionMiddleware"``.17 ``'django.contrib.sessions.middleware.SessionMiddleware'``. 18 18 19 19 The default ``settings.py`` created by ``django-admin.py startproject`` has 20 20 ``SessionMiddleware`` activated. -
docs/transactions.txt
32 32 your ``MIDDLEWARE_CLASSES`` setting:: 33 33 34 34 MIDDLEWARE_CLASSES = ( 35 "django.contrib.sessions.middleware.SessionMiddleware",36 "django.middleware.common.CommonMiddleware",37 "django.middleware.cache.CacheMiddleware",38 "django.middleware.transaction.TransactionMiddleware",35 'django.contrib.sessions.middleware.SessionMiddleware', 36 'django.middleware.common.CommonMiddleware', 37 'django.middleware.cache.CacheMiddleware', 38 'django.middleware.transaction.TransactionMiddleware', 39 39 ) 40 40 41 41 The order is quite important. The transaction middleware applies not only to