Changeset 1898
- Timestamp:
- 01/10/06 18:11:29 (3 years ago)
- Files:
-
- django/trunk/docs/authentication.txt (modified) (2 diffs)
- django/trunk/docs/cache.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/email.txt (modified) (1 diff)
- django/trunk/docs/generic_views.txt (modified) (2 diffs)
- django/trunk/docs/request_response.txt (modified) (2 diffs)
- django/trunk/docs/sessions.txt (modified) (4 diffs)
- django/trunk/docs/settings.txt (modified) (3 diffs)
- django/trunk/docs/templates_python.txt (modified) (3 diffs)
- django/trunk/docs/templates.txt (modified) (2 diffs)
- django/trunk/docs/url_dispatch.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/authentication.txt
r1773 r1898 171 171 --------- 172 172 173 **This only applies to the Django development version.** Previous versions, 174 s uch as Django 0.90, used simple MD5 hashes without password salts.173 Previous versions, such as Django 0.90, used simple MD5 hashes without password 174 salts. 175 175 176 176 The ``password`` field of a ``User`` object is a string in this format:: … … 315 315 is not anonymous. 316 316 317 **New in the Django development version**: ``user_passes_test()`` takes an 318 optional ``login_url`` argument, which lets you specify the URL for your login 319 page (``/accounts/login/`` by default). 317 ``user_passes_test()`` takes an optional ``login_url`` argument, which lets you 318 specify the URL for your login page (``/accounts/login/`` by default). 320 319 321 320 Example in Python 2.3 syntax:: django/trunk/docs/cache.txt
r1815 r1898 49 49 this is multi-process- and thread-safe. 50 50 51 dummy:/// **New in Django development version.** 52 Doesn't actually cache; just implements the 51 dummy:/// Doesn't actually cache; just implements the 53 52 cache backend interface and doesn't do 54 53 anything. This is an easy way to turn off django/trunk/docs/db-api.txt
r1871 r1898 223 223 ---------- 224 224 225 **New in Django development version.**226 227 225 By default, multiple lookups are "AND"ed together. If you'd like to use ``OR`` 228 226 statements in your queries, use the ``complex`` lookup type. django/trunk/docs/django-admin.txt
r1518 r1898 55 55 address and password. 56 56 57 **New in Django development version:** You can specify 58 ``username email password`` on the command line, for convenient use in shell 59 scripts. Example:: 57 You can specify ``username email password`` on the command line, for convenient 58 use in shell scripts. Example:: 60 59 61 60 django-admin.py createsuperuser john john@example.com mypassword django/trunk/docs/email.txt
r1798 r1898 119 119 =========================== 120 120 121 **New in Django development version.**122 123 121 `Header injection`_ is a security exploit in which an attacker inserts extra 124 122 e-mail headers to control the "To:" and "From:" in e-mail messages that your django/trunk/docs/generic_views.txt
r1773 r1898 130 130 template's context. 131 131 132 ``processors`` **New in Django development version.** A tuple of133 processors to apply to the ``DjangoContext`` of134 this view's template. See the`DjangoContext docs`_132 ``processors`` A tuple of processors to apply to the 133 ``DjangoContext`` of this view's template. See the 134 `DjangoContext docs`_ 135 135 ======================= ================================================== 136 136 … … 151 151 Defaults to 15. 152 152 153 ``allow_empty`` **New in Django development version.** 154 If ``False`` and there are no objects to display, 153 ``allow_empty`` If ``False`` and there are no objects to display, 155 154 the view will raise a 404 instead of displaying 156 155 an empty index page. ``False`` is default. django/trunk/docs/request_response.txt
r1868 r1898 152 152 a mutable ``QueryDict`` (one that was created via ``copy()``). 153 153 154 * ``__contains__(key)`` -- **New in Django development version.** Returns 155 ``True`` if the given key is set. This lets you do, e.g., 156 ``if "foo" in request.GET``. 154 * ``__contains__(key)`` -- Returns ``True`` if the given key is set. This 155 lets you do, e.g., ``if "foo" in request.GET``. 157 156 158 157 * ``get(key, default)`` -- Uses the same logic as ``__getitem__()`` above, … … 362 361 363 362 ``HttpResponsePermanentRedirect`` 364 **New in Django development version.***365 366 363 Like ``HttpResponseRedirect``, but it returns a permanent redirect (HTTP 367 364 status code 301) instead of a "found" redirect (status code 302). django/trunk/docs/sessions.txt
r1793 r1898 36 36 37 37 * ``__contains__(key)`` 38 **New in Django development version.**Example: ``'fav_color' in request.session``38 Example: ``'fav_color' in request.session`` 39 39 40 40 * ``__getitem__(key)`` … … 183 183 request.session['foo']['bar'] = 'baz' 184 184 185 **Only available in Django development version.** To change this default 186 behavior, set the ``SESSION_SAVE_EVERY_REQUEST`` setting to ``True``. If 187 ``SESSION_SAVE_EVERY_REQUEST`` is ``True``, Django will save the session to the 188 database on every single request. 185 To change this default behavior, set the ``SESSION_SAVE_EVERY_REQUEST`` setting 186 to ``True``. If ``SESSION_SAVE_EVERY_REQUEST`` is ``True``, Django will save 187 the session to the database on every single request. 189 188 190 189 Note that the session cookie is only sent when a session has been created or … … 219 218 ------------------- 220 219 221 Default: ``'sessionid'`` (**Django development version.** Previous default was 222 ``'hotclub'``, which was deemed too pornish.) 220 Default: ``'sessionid'`` 223 221 224 222 The name of the cookie to use for sessions. This can be whatever you want. … … 228 226 229 227 Default: ``False`` 230 231 **Only available in Django development version.**232 228 233 229 Whether to save the session data on every request. If this is ``False`` django/trunk/docs/settings.txt
r1808 r1898 526 526 ------------------- 527 527 528 Default: ``'sessionid'`` (**Django development version.** Previous default was 529 ``'hotclub'``, which was deemed too pornish.) 528 Default: ``'sessionid'`` 530 529 531 530 The name of the cookie to use for sessions. This can be whatever you want. … … 557 556 "django.core.context_processors.i18n") 558 557 559 **Only available in Django development version.**560 561 558 A tuple of callables that are used to populate the context in ``DjangoContext``. 562 559 These callables take a request object as their argument and return a dictionary … … 567 564 568 565 Default: ``False`` 569 570 **Only available in Django development version.**571 566 572 567 A boolean that turns on/off template debug mode. If this is ``True``, the fancy django/trunk/docs/templates_python.txt
r1871 r1898 277 277 }, [ip_address_processor]) 278 278 279 Note: The concept of template-context processors is new in the Django280 development version. In Django 0.90, ``DjangoContext`` automatically populates281 the context with all of the values explained below, but it's not possible to282 add and remove processors.283 284 279 Here's what each of the default processors does: 285 280 … … 535 530 ------------------------------- 536 531 537 **This section applies to the Django development version.**538 539 532 Custom filters are just Python functions that take one or two arguments: 540 533 … … 595 588 Writing custom template tags 596 589 ---------------------------- 597 598 **This section applies to the Django development version.**599 590 600 591 Tags are more complex than filters, because tags can do anything. django/trunk/docs/templates.txt
r1525 r1898 279 279 area in your admin to find the list of custom libraries in your installation. 280 280 281 **New in Django development version:** The ``{% load %}`` tag can take multiple 282 library names, separated by spaces.Example::281 The ``{% load %}`` tag can take multiple library names, separated by spaces. 282 Example:: 283 283 284 284 {% load comments i18n %} … … 500 500 include 501 501 ~~~~~~~ 502 503 **Only available in Django development version.**504 502 505 503 Loads a template and renders it with the current context. This is a way of django/trunk/docs/url_dispatch.txt
r1813 r1898 52 52 ======= 53 53 54 **This syntax is new in the Django development version.** See "Named groups"55 below if you're using Django 0.90.56 57 54 Here's a sample URLconf:: 58 55 … … 111 108 arguments to a view. 112 109 113 (Note that support for non-named regex groups is a new feature in the Django114 development version. Django 0.90 requires named groups.)115 116 110 In Python regular expressions, the syntax for named regular-expression groups 117 111 is ``(?P<name>pattern)``, where ``name`` is the name of the group and
