Ticket #4690: rest-twiddling.diff
File rest-twiddling.diff, 6.0 KB (added by , 17 years ago) |
---|
-
docs/tutorial01.txt
360 360 quotes. The author of this tutorial runs PostgreSQL, so the example 361 361 output is in PostgreSQL syntax. 362 362 363 * The ` sql` command doesn't actually run the SQL in your database - it just363 * The ``sql`` command doesn't actually run the SQL in your database - it just 364 364 prints it to the screen so that you can see what SQL Django thinks is required. 365 365 If you wanted to, you could copy and paste this SQL into your database prompt. 366 366 However, as we will see shortly, Django provides an easier way of committing -
docs/email.txt
228 228 229 229 * ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a 230 230 sub-class of Python's ``email.MIMEText.MIMEText`` class) holding the 231 message to be sent. If you ever need to extend the ` EmailMessage` class,231 message to be sent. If you ever need to extend the ``EmailMessage`` class, 232 232 you'll probably want to override this method to put the content you wish 233 233 into the MIME object. 234 234 -
docs/db-api.txt
1779 1779 you can provide ``get_object_or_404()`` with a manager object instead. 1780 1780 For example:: 1781 1781 1782 # Get the author of blog instance ` e` with a name of 'Fred'1782 # Get the author of blog instance ``e`` with a name of 'Fred' 1783 1783 a = get_object_or_404(e.authors, name='Fred') 1784 1784 1785 1785 # Use a custom manager 'recent_entries' in the search for an -
docs/release_notes_0.96.txt
28 28 29 29 Due to a bug in older versions of the ``MySQLdb`` Python module (which 30 30 Django uses to connect to MySQL databases), Django's MySQL backend now 31 requires version 1.2.1p2 or higher of ` MySQLdb`, and will raise31 requires version 1.2.1p2 or higher of ``MySQLdb``, and will raise 32 32 exceptions if you attempt to use an older version. 33 33 34 34 If you're currently unable to upgrade your copy of ``MySQLdb`` to meet … … 44 44 DATABASE_ENGINE = "mysql_old" 45 45 46 46 However, we strongly encourage MySQL users to upgrade to a more recent 47 version of ` MySQLdb` as soon as possible, The "mysql_old" backend is47 version of ``MySQLdb`` as soon as possible, The "mysql_old" backend is 48 48 provided only to ease this transition, and is considered deprecated; 49 49 aside from any necessary security fixes, it will not be actively 50 50 maintained, and it will be removed in a future release of Django. -
docs/legacy_databases.txt
18 18 what the name of the database is. Do that by editing these settings in your 19 19 `settings file`_: 20 20 21 * `DATABASE_NAME` 21 * `DATABASE_NAME`_ 22 22 * `DATABASE_ENGINE`_ 23 23 * `DATABASE_USER`_ 24 24 * `DATABASE_PASSWORD`_ -
docs/serialization.txt
48 48 ~~~~~~~~~~~~~~~~ 49 49 50 50 If you only want a subset of fields to be serialized, you can 51 specify a ` fields` argument to the serializer::51 specify a ``fields`` argument to the serializer:: 52 52 53 53 from django.core import serializers 54 54 data = serializers.serialize('xml', SomeModel.objects.all(), fields=('name','size')) 55 55 56 In this example, only the ` name` and `size` attributes of each model will56 In this example, only the ``name`` and ``size`` attributes of each model will 57 57 be serialized. 58 58 59 59 .. note:: -
docs/testing.txt
253 253 f.close() 254 254 255 255 will result in the evaluation of a POST request on ``/customers/wishes/``, 256 with a POST dictionary that contains ` name`, `attachment` (containing the257 file name), and ` attachment_file` (containing the file data). Note that you256 with a POST dictionary that contains ``name``, ``attachment`` (containing the 257 file name), and ``attachment_file`` (containing the file data). Note that you 258 258 need to manually close the file after it has been provided to the POST. 259 259 260 260 ``login(**credentials)`` … … 660 660 tested. This is the same format returned by ``django.db.models.get_apps()`` 661 661 662 662 Verbosity determines the amount of notification and debug information that 663 will be printed to the console; `0` is no output, `1`is normal output,664 and `2`is verbose output.663 will be printed to the console; '0' is no output, '1' is normal output, 664 and '2' is verbose output. 665 665 666 666 This method should return the number of tests that failed. 667 667 -
docs/authentication.txt
461 461 Other built-in views 462 462 -------------------- 463 463 464 In addition to the ` login` view, the authentication system includes a464 In addition to the ``login`` view, the authentication system includes a 465 465 few other useful built-in views: 466 466 467 467 ``django.contrib.auth.views.logout`` -
docs/django-admin.txt
513 513 514 514 Verbosity determines the amount of notification and debug information that 515 515 will be printed to the console. '0' is no output, '1' is normal output, 516 and `2`is verbose output.516 and '2' is verbose output. 517 517 518 518 --adminmedia 519 519 ------------