Changeset 5571
- Timestamp:
- 06/30/07 20:00:23 (1 year ago)
- Files:
-
- django/trunk/docs/authentication.txt (modified) (1 diff)
- django/trunk/docs/db-api.txt (modified) (1 diff)
- django/trunk/docs/django-admin.txt (modified) (1 diff)
- django/trunk/docs/legacy_databases.txt (modified) (1 diff)
- django/trunk/docs/release_notes_0.96.txt (modified) (1 diff)
- django/trunk/docs/serialization.txt (modified) (1 diff)
- django/trunk/docs/testing.txt (modified) (2 diffs)
- django/trunk/docs/tutorial01.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/authentication.txt
r5537 r5571 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 django/trunk/docs/db-api.txt
r5566 r5571 1832 1832 For example:: 1833 1833 1834 # Get the author of blog instance `e`with a name of 'Fred'1834 # Get the author of blog instance e with a name of 'Fred' 1835 1835 a = get_object_or_404(e.authors, name='Fred') 1836 1836 django/trunk/docs/django-admin.txt
r5418 r5571 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 django/trunk/docs/legacy_databases.txt
r5040 r5571 19 19 `settings file`_: 20 20 21 * `DATABASE_NAME` 21 * `DATABASE_NAME`_ 22 22 * `DATABASE_ENGINE`_ 23 23 * `DATABASE_USER`_ django/trunk/docs/release_notes_0.96.txt
r4826 r5571 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 django/trunk/docs/serialization.txt
r5415 r5571 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 django/trunk/docs/testing.txt
r5414 r5571 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 … … 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. django/trunk/docs/tutorial01.txt
r5496 r5571 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.
