Code

Ticket #4690: rest-twiddling.diff

File rest-twiddling.diff, 6.0 KB (added by Paul Bx <pb@…>, 7 years ago)
Line 
1Index: docs/tutorial01.txt
2===================================================================
3--- docs/tutorial01.txt (revision 5540)
4+++ docs/tutorial01.txt (working copy)
5@@ -360,7 +360,7 @@
6       quotes. The author of this tutorial runs PostgreSQL, so the example
7       output is in PostgreSQL syntax.
8 
9-    * The `sql` command doesn't actually run the SQL in your database - it just
10+    * The ``sql`` command doesn't actually run the SQL in your database - it just
11       prints it to the screen so that you can see what SQL Django thinks is required.
12       If you wanted to, you could copy and paste this SQL into your database prompt.
13       However, as we will see shortly, Django provides an easier way of committing
14Index: docs/email.txt
15===================================================================
16--- docs/email.txt      (revision 5540)
17+++ docs/email.txt      (working copy)
18@@ -228,7 +228,7 @@
19 
20     * ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a
21       sub-class of Python's ``email.MIMEText.MIMEText`` class) holding the
22-      message to be sent. If you ever need to extend the `EmailMessage` class,
23+      message to be sent. If you ever need to extend the ``EmailMessage`` class,
24       you'll probably want to override this method to put the content you wish
25       into the MIME object.
26 
27Index: docs/db-api.txt
28===================================================================
29--- docs/db-api.txt     (revision 5540)
30+++ docs/db-api.txt     (working copy)
31@@ -1779,7 +1779,7 @@
32 you can provide ``get_object_or_404()`` with a manager object instead.
33 For example::
34 
35-    # Get the author of blog instance `e` with a name of 'Fred'
36+    # Get the author of blog instance ``e`` with a name of 'Fred'
37     a = get_object_or_404(e.authors, name='Fred')
38 
39     # Use a custom manager 'recent_entries' in the search for an
40Index: docs/release_notes_0.96.txt
41===================================================================
42--- docs/release_notes_0.96.txt (revision 5540)
43+++ docs/release_notes_0.96.txt (working copy)
44@@ -28,7 +28,7 @@
45 
46 Due to a bug in older versions of the ``MySQLdb`` Python module (which
47 Django uses to connect to MySQL databases), Django's MySQL backend now
48-requires version 1.2.1p2 or higher of `MySQLdb`, and will raise
49+requires version 1.2.1p2 or higher of ``MySQLdb``, and will raise
50 exceptions if you attempt to use an older version.
51 
52 If you're currently unable to upgrade your copy of ``MySQLdb`` to meet
53@@ -44,7 +44,7 @@
54     DATABASE_ENGINE = "mysql_old"
55 
56 However, we strongly encourage MySQL users to upgrade to a more recent
57-version of `MySQLdb` as soon as possible, The "mysql_old" backend is
58+version of ``MySQLdb`` as soon as possible, The "mysql_old" backend is
59 provided only to ease this transition, and is considered deprecated;
60 aside from any necessary security fixes, it will not be actively
61 maintained, and it will be removed in a future release of Django.
62Index: docs/legacy_databases.txt
63===================================================================
64--- docs/legacy_databases.txt   (revision 5540)
65+++ docs/legacy_databases.txt   (working copy)
66@@ -18,7 +18,7 @@
67 what the name of the database is. Do that by editing these settings in your
68 `settings file`_:
69 
70-    * `DATABASE_NAME`
71+    * `DATABASE_NAME`_
72     * `DATABASE_ENGINE`_
73     * `DATABASE_USER`_
74     * `DATABASE_PASSWORD`_
75Index: docs/serialization.txt
76===================================================================
77--- docs/serialization.txt      (revision 5540)
78+++ docs/serialization.txt      (working copy)
79@@ -48,12 +48,12 @@
80 ~~~~~~~~~~~~~~~~
81 
82 If you only want a subset of fields to be serialized, you can
83-specify a `fields` argument to the serializer::
84+specify a ``fields`` argument to the serializer::
85 
86     from django.core import serializers
87     data = serializers.serialize('xml', SomeModel.objects.all(), fields=('name','size'))
88 
89-In this example, only the `name` and `size` attributes of each model will
90+In this example, only the ``name`` and ``size`` attributes of each model will
91 be serialized.
92 
93 .. note::
94Index: docs/testing.txt
95===================================================================
96--- docs/testing.txt    (revision 5540)
97+++ docs/testing.txt    (working copy)
98@@ -253,8 +253,8 @@
99         f.close()
100 
101     will result in the evaluation of a POST request on ``/customers/wishes/``,
102-    with a POST dictionary that contains `name`, `attachment` (containing the
103-    file name), and `attachment_file` (containing the file data). Note that you
104+    with a POST dictionary that contains ``name``, ``attachment`` (containing the
105+    file name), and ``attachment_file`` (containing the file data). Note that you
106     need to manually close the file after it has been provided to the POST.
107 
108 ``login(**credentials)``
109@@ -660,8 +660,8 @@
110     tested. This is the same format returned by ``django.db.models.get_apps()``
111 
112     Verbosity determines the amount of notification and debug information that
113-    will be printed to the console; `0` is no output, `1` is normal output,
114-    and `2` is verbose output.
115+    will be printed to the console; '0' is no output, '1' is normal output,
116+    and '2' is verbose output.
117 
118     This method should return the number of tests that failed.
119 
120Index: docs/authentication.txt
121===================================================================
122--- docs/authentication.txt     (revision 5540)
123+++ docs/authentication.txt     (working copy)
124@@ -461,7 +461,7 @@
125 Other built-in views
126 --------------------
127 
128-In addition to the `login` view, the authentication system includes a
129+In addition to the ``login`` view, the authentication system includes a
130 few other useful built-in views:
131 
132 ``django.contrib.auth.views.logout``
133Index: docs/django-admin.txt
134===================================================================
135--- docs/django-admin.txt       (revision 5540)
136+++ docs/django-admin.txt       (working copy)
137@@ -513,7 +513,7 @@
138 
139 Verbosity determines the amount of notification and debug information that
140 will be printed to the console. '0' is no output, '1' is normal output,
141-and `2` is verbose output.
142+and '2' is verbose output.
143 
144 --adminmedia
145 ------------