Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1998 -- Changed double quotes to single quotes

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit be25b661b1b2179273b886ec45d4b449a9997a8d 1 parent 14392b0
Adrian Holovaty authored May 26, 2006
12  django/conf/global_settings.py
@@ -219,12 +219,12 @@
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
 ############
8  django/conf/project_template/settings.py
@@ -51,10 +51,10 @@
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'
6  docs/cache.txt
@@ -209,12 +209,12 @@ The per-site cache
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 your
  212
+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"
2  docs/csrf.txt
@@ -17,7 +17,7 @@ middleware into your list of installed middleware.
17 17
 
18 18
 How to use it
19 19
 =============
20  
-Add the middleware ``"django.contrib.csrf.middleware.CsrfMiddleware"`` to 
  20
+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
8  docs/middleware.txt
@@ -23,10 +23,10 @@ name. For example, here's the default ``MIDDLEWARE_CLASSES`` created by
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``,
2  docs/sessions.txt
@@ -14,7 +14,7 @@ Sessions are implemented via middleware_.
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.
8  docs/transactions.txt
@@ -32,10 +32,10 @@ To activate this feature, just add the ``TransactionMiddleware`` middleware to
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

0 notes on commit be25b66

Please sign in to comment.
Something went wrong with that request. Please try again.