Changeset 8843
- Timestamp:
- 09/01/08 22:40:42 (4 months ago)
- Files:
-
- django/trunk/docs/_ext/djangodocs.py (modified) (1 diff)
- django/trunk/docs/howto/custom-management-commands.txt (modified) (1 diff)
- django/trunk/docs/howto/custom-model-fields.txt (modified) (1 diff)
- django/trunk/docs/howto/custom-template-tags.txt (modified) (3 diffs)
- django/trunk/docs/howto/deployment/modpython.txt (modified) (1 diff)
- django/trunk/docs/index.txt (modified) (1 diff)
- django/trunk/docs/internals/contributing.txt (modified) (2 diffs)
- django/trunk/docs/intro/tutorial01.txt (modified) (1 diff)
- django/trunk/docs/intro/whatsnext.txt (modified) (1 diff)
- django/trunk/docs/ref/contrib/flatpages.txt (modified) (1 diff)
- django/trunk/docs/ref/contrib/formtools/form-wizard.txt (modified) (1 diff)
- django/trunk/docs/ref/contrib/humanize.txt (modified) (1 diff)
- django/trunk/docs/ref/contrib/index.txt (modified) (1 diff)
- django/trunk/docs/ref/contrib/sitemaps.txt (modified) (1 diff)
- django/trunk/docs/ref/contrib/sites.txt (modified) (2 diffs)
- django/trunk/docs/ref/contrib/syndication.txt (modified) (3 diffs)
- django/trunk/docs/ref/databases.txt (modified) (1 diff)
- django/trunk/docs/ref/django-admin.txt (modified) (6 diffs)
- django/trunk/docs/ref/forms/api.txt (modified) (2 diffs)
- django/trunk/docs/ref/forms/fields.txt (modified) (6 diffs)
- django/trunk/docs/ref/forms/widgets.txt (modified) (1 diff)
- django/trunk/docs/ref/generic-views.txt (modified) (5 diffs)
- django/trunk/docs/ref/middleware.txt (modified) (2 diffs)
- django/trunk/docs/ref/models/fields.txt (modified) (8 diffs)
- django/trunk/docs/ref/models/instances.txt (modified) (2 diffs)
- django/trunk/docs/ref/models/options.txt (modified) (2 diffs)
- django/trunk/docs/ref/models/querysets.txt (modified) (7 diffs)
- django/trunk/docs/ref/request-response.txt (modified) (6 diffs)
- django/trunk/docs/ref/settings.txt (modified) (17 diffs)
- django/trunk/docs/ref/templates/api.txt (modified) (1 diff)
- django/trunk/docs/ref/templates/builtins.txt (modified) (13 diffs)
- django/trunk/docs/ref/unicode.txt (modified) (1 diff)
- django/trunk/docs/_static/djangodocs.css (modified) (1 diff)
- django/trunk/docs/topics/auth.txt (modified) (4 diffs)
- django/trunk/docs/topics/cache.txt (modified) (5 diffs)
- django/trunk/docs/topics/db/models.txt (modified) (3 diffs)
- django/trunk/docs/topics/db/queries.txt (modified) (2 diffs)
- django/trunk/docs/topics/email.txt (modified) (1 diff)
- django/trunk/docs/topics/files.txt (modified) (1 diff)
- django/trunk/docs/topics/forms/index.txt (modified) (1 diff)
- django/trunk/docs/topics/http/file-uploads.txt (modified) (1 diff)
- django/trunk/docs/topics/http/sessions.txt (modified) (12 diffs)
- django/trunk/docs/topics/http/shortcuts.txt (modified) (1 diff)
- django/trunk/docs/topics/http/urls.txt (modified) (2 diffs)
- django/trunk/docs/topics/pagination.txt (modified) (1 diff)
- django/trunk/docs/topics/templates.txt (modified) (1 diff)
- django/trunk/docs/topics/testing.txt (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/_ext/djangodocs.py
r8593 r8843 89 89 self.body.append(')') 90 90 pass 91 92 # 93 # Turn the "new in version" stuff (versoinadded/versionchanged) into a 94 # better callout -- the Sphinx default is just a little span, 95 # which is a bit less obvious that I'd like. 96 # 97 # FIXME: these messages are all hardcoded in English. We need to chanage 98 # that to accomodate other language docs, but I can't work out how to make 99 # that work and I think it'll require Sphinx 0.5 anyway. 100 # 101 version_text = { 102 'deprecated': 'Deprecated in Django %s', 103 'versionchanged': 'Changed in Django %s', 104 'versionadded': 'New in Django %s', 105 } 106 107 def visit_versionmodified(self, node): 108 self.body.append( 109 self.starttag(node, 'div', CLASS=node['type']) 110 ) 111 title = "%s%s" % ( 112 self.version_text[node['type']] % node['version'], 113 len(node) and ":" or "." 114 ) 115 self.body.append('<span class="title">%s</span> ' % title) 116 117 def depart_versionmodified(self, node): 118 self.body.append("</div>\n") 91 119 92 120 # Give each section a unique ID -- nice for custom CSS hooks django/trunk/docs/howto/custom-management-commands.txt
r8506 r8843 4 4 ==================================== 5 5 6 **New in Django development version** 6 .. versionadded:: 1.0 7 7 8 8 Applications can register their own actions with ``manage.py``. For example, django/trunk/docs/howto/custom-model-fields.txt
r8616 r8843 5 5 =========================== 6 6 7 **New in Django development version** 7 .. versionadded:: 1.0 8 8 9 9 Introduction django/trunk/docs/howto/custom-template-tags.txt
r8828 r8843 158 158 ~~~~~~~~~~~~~~~~~~~~~~~~~ 159 159 160 **New in Django development version** 160 .. versionadded:: 1.0 161 161 162 162 When writing a custom filter, give some thought to how the filter will interact … … 423 423 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 424 424 425 **New in Django development version** 425 .. versionadded:: 1.0 426 426 427 427 The output from template tags is **not** automatically run through the … … 548 548 format it accordingly. 549 549 550 .. admonition:: New in development version:550 .. versionadded:: 1.0 551 551 552 552 Variable resolution has changed in the development version of Django. django/trunk/docs/howto/deployment/modpython.txt
r8506 r8843 50 50 <django-settings-module>` so mod_python knows which settings to use. 51 51 52 **New in Django development version:** Because mod_python does not know we are 52 .. versionadded:: 1.0 53 The ``PythonOption django.root ...`` is new in this version. 54 55 Because mod_python does not know we are 53 56 serving this site from underneath the ``/mysite/`` prefix, this value needs to 54 57 be passed through to the mod_python handler in Django, via the ``PythonOption django/trunk/docs/index.txt
r8735 r8843 84 84 * :ref:`topics-signals` 85 85 * :ref:`topics-testing` 86 * :ref:`topics-http-sessions` 86 87 87 88 Add-on ("contrib") applications django/trunk/docs/internals/contributing.txt
r8731 r8843 573 573 framework since the last release. 574 574 575 Our philosophy is that "general improvements" are something that *all* current 576 Django users should benefit from, including users of trunk *and* users of the 577 latest release. Hence, the documentation section on djangoproject.com points 578 people by default to the newest versions of the docs, because they have the 579 latest and greatest content. (In fact, the Web site pulls directly from the 580 Subversion repository, converting to HTML on the fly.) 581 582 But this decision to feature bleeding-edge documentation has one large caveat: 583 any documentation of *new* features will be seen by Django users who don't 584 necessarily have access to those features yet, because they're only using the 585 latest release. Thus, our policy is: 575 Our policy is: 586 576 587 577 **All documentation of new features should be written in a way that clearly … … 590 580 development version.** 591 581 592 Our traditional way of marking new features is by prefacing the features' 593 documentation with: "New in Django development version." Changes aren't 594 *required* to include this exact text, but all documentation of new features 595 should include the phrase "development version," so we can find and remove 596 those phrases for the next release. 582 Our prefered way for marking new features is by prefacing the features' 583 documentation with: ".. versionadded:: X.Y", followed by an optional one line 584 comment and a mandatory blank line. 585 586 General improvements, or other changes to the APIs that should be emphasised 587 should use the ".. versionchanged:: X.Y" directive (with the same format as the 588 ``versionadded`` mentioned above. 597 589 598 590 Guidelines for ReST files django/trunk/docs/intro/tutorial01.txt
r8506 r8843 115 115 0 errors found. 116 116 117 Django version 0.96, using settings 'mysite.settings'117 Django version 1.0, using settings 'mysite.settings' 118 118 Development server is running at http://127.0.0.1:8000/ 119 Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows).119 Quit the server with CONTROL-C. 120 120 121 121 You've started the Django development server, a lightweight Web server written django/trunk/docs/intro/whatsnext.txt
r8736 r8843 217 217 documentation in the same Subversion commit transaction. 218 218 219 * To distinguish feature changes/additions in the docs, we use the phrase 220 **New in Django development version**. In practice, this means that the 221 current documentation on djangoproject.com can be used by users of either 222 the latest release *or* the development version. 219 * To distinguish feature changes/additions in the docs, we use the phrase: 220 "New in version X.Y", being X.Y the next release version (hence, the one 221 being developed). 223 222 224 223 * Documentation for a particular Django release is frozen once the version django/trunk/docs/ref/contrib/flatpages.txt
r8506 r8843 20 20 template. It can be associated with one, or multiple, sites. 21 21 22 **New in Django development version** 22 .. versionadded:: 1.0 23 23 24 24 The content field may optionally be left blank if you prefer to put your django/trunk/docs/ref/contrib/formtools/form-wizard.txt
r8506 r8843 8 8 :synopsis: Splits forms across multiple Web pages. 9 9 10 **New in Django development version.** 10 .. versionadded:: 1.0 11 11 12 12 Django comes with an optional "form wizard" application that splits django/trunk/docs/ref/contrib/humanize.txt
r8506 r8843 75 75 ---------- 76 76 77 **New in Django development version** 77 .. versionadded:: 1.0 78 78 79 79 For dates that are the current day or within one day, return "today", django/trunk/docs/ref/contrib/index.txt
r8557 r8843 60 60 ======== 61 61 62 **New in Django development version.** 62 .. versionchanged:: 1.0 63 The comments application has been rewriten. See :ref:`ref-contrib-comments-upgrade` 64 for information on howto upgrade. 63 65 64 66 A simple yet flexible comments system. See :ref:`ref-contrib-comments-index`. django/trunk/docs/ref/contrib/sitemaps.txt
r8754 r8843 343 343 ------------------------------ 344 344 345 **New in Django development version** 345 .. versionadded:: 1.0 346 346 347 347 Once the sitemaps application is added to your project, you may also django/trunk/docs/ref/contrib/sites.txt
r8506 r8843 231 231 =================================== 232 232 233 **New in Django development version** 233 .. versionadded:: 1.0 234 234 235 235 As the current site is stored in the database, each call to … … 380 380 .. _requestsite-objects: 381 381 382 **New in Django development version** 382 .. versionadded:: 1.0 383 383 384 384 Some :ref:`django.contrib <ref-contrib-index>` applications take advantage of django/trunk/docs/ref/contrib/syndication.txt
r8512 r8843 266 266 a 404 error for that request. 267 267 268 **New in Django development version:** The :meth:`get_object()` method 269 also has a chance to handle the :file:`/rss/beats/` url. In this case, 270 :data:`bits` will be an empty list. In our example, ``len(bits) != 1`` and 271 an :exc:`ObjectDoesNotExist` exception will be raised, so 268 .. versionadded:: 1.0 269 meth:`get_object()` can handle the :file:`/rss/beats/` url. 270 271 The :meth:`get_object()` method also has a chance to handle the 272 :file:`/rss/beats/` url. In this case, :data:`bits` will be an 273 empty list. In our example, ``len(bits) != 1`` and an 274 :exc:`ObjectDoesNotExist` exception will be raised, so 272 275 :file:`/rss/beats/` will generate a 404 page. But you can handle this case 273 276 however you like. For example, you could generate a combined feed for all … … 477 480 # (where it is the feed-level ID element). If not provided, the feed 478 481 # link is used as the ID. 479 #480 # (New in Django development version)481 482 482 483 def feed_guid(self, obj): … … 653 654 # only used for Atom feeds (it is the ID element for an item in an 654 655 # Atom feed). If not provided, the item's link is used by default. 655 #656 # (New in Django development version)657 656 658 657 def item_guid(self, obj): django/trunk/docs/ref/databases.txt
r8792 r8843 316 316 it would be stored in the model tablespace ``tables`` by default. 317 317 318 **New in the Django development version:** Use the :setting:`DEFAULT_TABLESPACE` 319 and :setting:`DEFAULT_INDEX_TABLESPACE` settings to specify default values for 320 the db_tablespace options. These are useful for setting a tablespace for the 321 built-in Django apps and other applications whose code you cannot control. 318 .. versionadded:: 1.0 319 320 Use the :setting:`DEFAULT_TABLESPACE` and :setting:`DEFAULT_INDEX_TABLESPACE` 321 settings to specify default values for the db_tablespace options. 322 These are useful for setting a tablespace for the built-in Django apps and 323 other applications whose code you cannot control. 322 324 323 325 Django does not create the tablespaces for you. Please refer to `Oracle's django/trunk/docs/ref/django-admin.txt
r8740 r8843 99 99 ------- 100 100 101 **New in Django development version** 101 .. versionadded:: 1.0 102 102 103 103 Can be run as a cronjob or directly to clean out old data from the database … … 107 107 --------------- 108 108 109 **New in Django development version** 109 .. versionchanged:: 1.0 110 Before 1.0 this was the "bin/compile-messages.py" command. 110 111 111 112 Compiles .po files created with ``makemessages`` to .mo files for use with … … 135 136 .. django-admin:: createsuperuser 136 137 137 **New in Django development version** 138 .. versionadded:: 1.0 138 139 139 140 Creates a superuser account (a user who has all permissions). This is … … 210 211 .. django-admin-option:: --exclude 211 212 212 **New in Django development version** 213 .. versionadded:: 1.0 213 214 214 215 Exclude a specific application from the applications whose contents is … … 384 385 ------------ 385 386 386 **New in Django development version** 387 .. versionchanged:: 1.0 388 Before 1.0 this was the "bin/make-messages.py" command. 387 389 388 390 Runs over the entire source tree of the current directory and pulls out all … … 735 737 -------------------------------- 736 738 737 **New in Django development version** 739 .. versionadded:: 1.0 738 740 739 741 Runs a Django development server (as in ``runserver``) using data from the django/trunk/docs/ref/forms/api.txt
r8506 r8843 158 158 {'cc_myself': True, 'message': u'Hi there', 'sender': u'foo@example.com', 'subject': u'hello'} 159 159 160 .. note:: 161 **New in Django development version** The ``cleaned_data`` attribute was 162 called ``clean_data`` in earlier releases. 160 .. versionchanged:: 1.0 161 The ``cleaned_data`` attribute was called ``clean_data`` in earlier releases. 163 162 164 163 Note that any text-based field -- such as ``CharField`` or ``EmailField`` -- … … 565 564 -------------------------------- 566 565 567 **New in Django development version** 566 .. versionadded:: 1.0 568 567 569 568 Dealing with forms that have ``FileField`` and ``ImageField`` fields django/trunk/docs/ref/forms/fields.txt
r8771 r8843 220 220 ~~~~~~~~~~~~~~~~~~ 221 221 222 .. versionadded:: 1.0 223 222 224 .. attribute:: Field.error_messages 223 225 224 **New in Django development version**225 226 226 227 The ``error_messages`` argument lets you override the default messages that the … … 315 316 * Error message keys: ``required`` 316 317 317 **New in Django development version:** The empty value for a ``CheckboxInput`` 318 (and hence the standard ``BooleanField``) has changed to return ``False`` 319 instead of ``None`` in the development version.318 .. versionchanged:: 1.0 319 The empty value for a ``CheckboxInput`` (and hence the standard ``BooleanField``) 320 has changed to return ``False`` instead of ``None`` in the development version. 320 321 321 322 .. note:: … … 449 450 '%m/%d/%y', # '10/25/06' 450 451 451 **New in Django development version:** The ``DateTimeField`` used to use a 452 ``TextInput`` widget by default. This has now changed.452 .. versionchanged:: 1.0 453 The ``DateTimeField`` used to use a ``TextInput`` widget by default. This has now changed. 453 454 454 455 ``DecimalField`` 455 456 ~~~~~~~~~~~~~~~~ 456 457 458 .. versionadded:: 1.0 459 457 460 .. class:: DecimalField(**kwargs) 458 459 **New in Django development version**460 461 461 462 * Default widget: ``TextInput`` … … 504 505 ~~~~~~~~~~~~~ 505 506 507 .. versionadded:: 1.0 508 506 509 .. class:: FileField(**kwargs) 507 508 **New in Django development version**509 510 510 511 * Default widget: ``FileInput`` … … 524 525 ~~~~~~~~~~~~~~~~~ 525 526 527 .. versionadded:: 1.0 528 526 529 .. class:: FilePathField(**kwargs) 527 528 **New in Django development version**529 530 530 531 * Default widget: ``Select`` … … 570 571 ~~~~~~~~~~~~~~ 571 572 573 .. versionadded:: 1.0 574 572 575 .. class:: ImageField(**kwargs) 573 574 **New in Django development version**575 576 576 577 * Default widget: ``FileInput`` django/trunk/docs/ref/forms/widgets.txt
r8610 r8843 39 39 .. class:: DateTimeInput 40 40 41 .. versionadded:: 1.0 42 41 43 Date/time input as a simple text box: ``<input type='text' ...>`` 42 43 **New in Django development version:**44 44 45 45 .. class:: Textarea django/trunk/docs/ref/generic-views.txt
r8506 r8843 199 199 default, this is ``False``. 200 200 201 * **New in Django development version:** ``template_object_name``: 202 Designates the name of the template variable to use in the template 203 context. By default, this is ``'latest'``. 201 .. versionadded:: 1.0 202 203 * ``template_object_name``: Designates the name of the template variable 204 to use in the template context. By default, this is ``'latest'``. 204 205 205 206 **Template name:** … … 224 225 ``queryset.dates(date_field, 'year')[::-1]``. 225 226 227 .. versionchanged:: 1.0 228 The behaviour depending on ``template_object_name`` is new in this version. 229 226 230 * ``latest``: The ``num_latest`` objects in the system, ordered descending 227 231 by ``date_field``. For example, if ``num_latest`` is ``10``, then 228 232 ``latest`` will be a list of the latest 10 objects in ``queryset``. 229 233 230 **New in Django development version:** This variable's name depends on 231 the ``template_object_name`` parameter, which is ``'latest'`` by default. 232 If ``template_object_name`` is ``'foo'``, this variable's name will be 233 ``foo``. 234 This variable's name depends on the ``template_object_name`` parameter, 235 which is ``'latest'`` by default. If ``template_object_name`` is 236 ``'foo'``, this variable's name will be ``foo``. 234 237 235 238 ``django.views.generic.date_based.archive_year`` … … 734 737 **Template context:** 735 738 739 .. versionadded:: 1.0 740 The ``paginator`` and ``page_obj`` context variables are new. 741 736 742 In addition to ``extra_context``, the template's context will be: 737 743 … … 747 753 If the results are paginated, the context will contain these extra variables: 748 754 749 * **New in Django development version:** ``paginator``: An instance of 750 ``django.core.paginator.Paginator``. 751 752 * **New in Django development version:** ``page_obj``: An instance of 753 ``django.core.paginator.Page``. 755 * ``paginator``: An instance of ``django.core.paginator.Paginator``. 756 757 * ``page_obj``: An instance of ``django.core.paginator.Page``. 754 758 755 759 Notes on pagination … … 779 783 <topics-pagination>`. 780 784 781 **New in Django development version:** 785 .. versionadded:: 1.0 782 786 783 787 As a special case, you are also permitted to use ``last`` as a value for django/trunk/docs/ref/middleware.txt
r8791 r8843 55 55 pattern for ``foo.com/bar/``. 56 56 57 **New in Django development version:** The behavior of 58 :setting:`APPEND_SLASH` has changed slightly in the development version. 59 It didn't used to check whether the pattern was matched in the URLconf. 57 .. versionchanged:: 1.0 58 The behavior of :setting:`APPEND_SLASH` has changed slightly in this 59 version. It didn't used to check whether the pattern was matched in 60 the URLconf. 60 61 61 62 If :setting:`PREPEND_WWW` is ``True``, URLs that lack a leading "www." … … 176 177 .. class:: django.contrib.csrf.middleware.CsrfMiddleware 177 178 178 **New in Django development version** 179 .. versionadded:: 1.0 179 180 180 181 Adds protection against Cross Site Request Forgeries by adding hidden form django/trunk/docs/ref/models/fields.txt
r8830 r8843 172 172 .. attribute:: Field.db_tablespace 173 173 174 **New in Django development version** 174 .. versionadded:: 1.0 175 175 176 176 The name of the database tablespace to use for this field's index, if this field … … 367 367 ---------------- 368 368 369 **New in Django development version** 369 .. versionadded:: 1.0 370 370 371 371 .. class:: DecimalField(max_digits=None, decimal_places=None, [**options]) … … 423 423 directory). 424 424 425 **New in Django development version**425 .. versionadded:: 1.0 426 426 427 427 This may also be a callable, such as a function, which will be called to … … 453 453 .. attribute:: FileField.storage 454 454 455 **New in Django development version.**455 .. versionadded:: 1.0 456 456 457 457 Optional. A storage object, which handles the storage and retrieval of your … … 500 500 visiting its URL on your site. Don't allow that. 501 501 502 **New in development version:** By default, :class:`FileField` instances are 502 .. versionadded:: 1.0 503 The ``max_length`` argument was added in this version. 504 505 By default, :class:`FileField` instances are 503 506 created as ``varchar(100)`` columns in your database. As with other fields, you 504 507 can change the maximum length using the :attr:`~CharField.max_length` argument. … … 543 546 (``foo.gif`` and ``bar.gif``). 544 547 545 **New in development version:** By default, :class:`FilePathField` instances are 548 .. versionadded:: 1.0 549 The ``max_length`` argument was added in this version. 550 551 By default, :class:`FilePathField` instances are 546 552 created as ``varchar(100)`` columns in your database. As with other fields, you 547 553 can change the maximum length using the :attr:`~CharField.max_length` argument. … … 589 595 .. _Python Imaging Library: http://www.pythonware.com/products/pil/ 590 596 591 **New in development version:** By default, :class:`ImageField` instances are 597 .. versionadded:: 1.0 598 The ``max_length`` argument was added in this version. 599 600 By default, :class:`ImageField` instances are 592 601 created as ``varchar(100)`` columns in your database. As with other fields, you 593 602 can change the maximum length using the :attr:`~CharField.max_length` argument. … … 754 763 imported from elsewhere. 755 764 756 **New in Django development version:** To refer to models defined in another 765 .. versionchanged:: 1.0 766 Refering models in other applications must include the application label. 767 768 To refer to models defined in another 757 769 application, you must instead explicitly specify the application label. For 758 770 example, if the ``Manufacturer`` model above is defined in another application django/trunk/docs/ref/models/instances.txt
r8755 r8843 63 63 ~~~~~~~~~~~~~~~~~~~ 64 64 65 **New in Django development version** 65 .. versionadded:: 1.0 66 66 67 67 .. attribute:: Model.pk … … 173 173 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 174 174 175 **New in Django development version** 175 .. versionadded:: 1.0 176 176 177 177 In some rare circumstances, it's necessary to be able to force the ``save()`` django/trunk/docs/ref/models/options.txt
r8757 r8843 56 56 .. attribute:: Options.db_tablespace 57 57 58 **New in Django development version** 58 .. versionadded:: 1.0 59 59 60 60 The name of the database tablespace to use for the model. If the backend doesn't … … 153 153 statement). 154 154 155 **New in Django development version** 155 .. versionadded:: 1.0 156 156 157 157 For convenience, unique_together can be a single list when dealing with a single django/trunk/docs/ref/models/querysets.txt
r8694 r8843 377 377 ~~~~~~~~~~ 378 378 379 **New in Django development version** 379 .. versionadded:: 1.0 380 380 381 381 Returns an ``EmptyQuerySet`` -- a ``QuerySet`` that always evaluates to … … 459 459 c = p.hometown # Requires a database call. 460 460 461 The ``depth`` argument is new in the Django development version. 461 .. versionadded:: 1.0 462 The ``depth`` argument is new in the Django development version. 462 463 463 464 ``extra(select=None, where=None, params=None, tables=None, order_by=None, select_params=None)`` … … 519 520 subqueries. 520 521 521 **New in Django development version** 522 .. versionadded:: 1.0 523 522 524 In some rare cases, you might wish to pass parameters to the SQL fragments 523 525 in ``extra(select=...)```. For this purpose, use the ``select_params`` … … 620 622 Entry.objects.extra(where=['headline=%s'], params=['Lennon']) 621 623 622 **New in Django development version** The ``select_params`` argument to623 ``extra()`` is new. Previously, you could attempt to pass parameters for624 ``select`` in the ``params`` argument, but it worked very unreliably.625 626 624 QuerySet methods that do not return QuerySets 627 625 --------------------------------------------- … … 854 852 SELECT ... WHERE id IS NULL; 855 853 856 **New in Django development version:** The semantics of ``id__exact=None`` have 857 changed in the development version. Previously, it was (intentionally) 858 converted to ``WHERE id = NULL`` at the SQL level, which would never match 859 anything. It has now been changed to behave the same as ``id__isnull=True``. 854 .. versionchanged:: 1.0 855 The semantics of ``id__exact=None`` have 856 changed in the development version. Previously, it was (intentionally) 857 converted to ``WHERE id = NULL`` at the SQL level, which would never match 858 anything. It has now been changed to behave the same as ``id__isnull=True``. 860 859 861 860 .. admonition:: MySQL comparisons … … 1141 1140 ~~~~~ 1142 1141 1143 **New in Django development version** 1142 .. versionadded:: 1.0 1144 1143 1145 1144 Case-sensitive regular expression match. … … 1169 1168 ~~~~~~ 1170 1169 1171 **New in Django development version** 1170 .. versionadded:: 1.0 1172 1171 1173 1172 Case-insensitive regular expression match. django/trunk/docs/ref/request-response.txt
r8733 r8843 50 50 .. attribute:: HttpRequest.encoding 51 51 52 **New in Django development version**52 .. versionadded:: 1.0 53 53 54 54 A string representing the current encoding used to decode form submission … … 184 184 .. method:: HttpRequest.get_host() 185 185 186 **New in Django development version**186 .. versionadded:: 1.0 187 187 188 188 Returns the originating host of the request using information from the … … 203 203 .. method:: HttpRequest.build_absolute_uri(location) 204 204 205 **New in Django development version**205 .. versionadded:: 1.0 206 206 207 207 Returns the absolute URI form of ``location``. If no location is provided, … … 221 221 .. method:: HttpRequest.is_ajax() 222 222 223 **New in Django development version**223 .. versionadded:: 1.0 224 224 225 225 Returns ``True`` if the request was made via an ``XMLHttpRequest``, by checking … … 449 449 ``status`` is the `HTTP Status code`_ for the response. 450 450 451 **(New in Django development version)** ``content_type`` is an alias for 452 ``mimetype``. Historically, the parameter was only called ``mimetype``, 453 but since this is actually the value included in the HTTP ``Content-Type`` 454 header, it can also include the character set encoding, which makes it 455 more than just a MIME type specification. If ``mimetype`` is specified 456 (not ``None``), that value is used. Otherwise, ``content_type`` is used. If 457 neither is given, the ``DEFAULT_CONTENT_TYPE`` setting is used. 451 .. versionadded:: 1.0 452 453 ``content_type`` is an alias for ``mimetype``. Historically, this parameter 454 was only called ``mimetype``, but since this is actually the value included 455 in the HTTP ``Content-Type`` header, it can also include the character set 456 encoding, which makes it more than just a MIME type specification. 457 If ``mimetype`` is specified (not ``None``), that value is used. 458 Otherwise, ``content_type`` is used. If neither is given, the 459 ``DEFAULT_CONTENT_TYPE`` setting is used. 458 460 459 461 .. method:: HttpResponse.__setitem__(header, value) … … 549 551 .. class:: HttpResponseBadRequest 550 552 551 **New in Django development version.** Acts just like :class:`HttpResponse` 552 but uses a 400 status code. 553 .. versionadded:: 1.0 554 555 Acts just like :class:`HttpResponse` but uses a 400 status code. 553 556 554 557 .. class:: HttpResponseNotFound django/trunk/docs/ref/settings.txt
r8640 r8843 288 288 -------------------------- 289 289 290 **New in Django development version** 290 .. versionadded:: 1.0 291 291 292 292 Default: ``False`` … … 343 343 ------------------ 344 344 345 **New in Django development version** 345 .. versionadded:: 1.0 346 346 347 347 Default: ``''`` (Empty string) … … 355 355 ------------------------ 356 356 357 **New in Django development version** 357 .. versionadded:: 1.0 358 358 359 359 Default: ``''`` (Empty string) … … 436 436 ------------- 437 437 438 **New in Django development version** 438 .. versionadded:: 1.0 439 439 440 440 Default: ``False`` … … 447 447 ------------ 448 448 449 **New in Django development version** 449 .. versionadded:: 1.0 450 450 451 451 Default: ``'utf-8'`` … … 459 459 -------------------- 460 460 461 **New in Django development version** 461 .. versionadded:: 1.0 462 462 463 463 Default:: … … 473 473 --------------------------- 474 474 475 **New in Django development version** 475 .. versionadded:: 1.0 476 476 477 477 Default: ``2621440`` (i.e. 2.5 MB). … … 485 485 -------------------- 486 486 487 **New in Django development version** 487 .. versionadded:: 1.0 488 488 489 489 Default: ``None`` … … 616 616 -------------------- 617 617 618 **New in Django development version** 618 .. versionadded:: 1.0 619 619 620 620 Default: ``'django_language'`` … … 680 680 ------------------ 681 681 682 **New in Django development version** 682 .. versionadded:: 1.0 683 683 684 684 Default: ``'/accounts/profile/'`` … … 695 695 --------- 696 696 697 **New in Django development version** 697 .. versionadded:: 1.0
