Changeset 4804
- Timestamp:
- 03/23/07 15:45:30 (1 year ago)
- Files:
-
- django/trunk/docs/add_ons.txt (modified) (2 diffs)
- django/trunk/docs/django-admin.txt (modified) (11 diffs)
- django/trunk/docs/generic_views.txt (modified) (2 diffs)
- django/trunk/docs/middleware.txt (modified) (1 diff)
- django/trunk/docs/model-api.txt (modified) (3 diffs)
- django/trunk/docs/newforms.txt (modified) (1 diff)
- django/trunk/docs/request_response.txt (modified) (1 diff)
- django/trunk/docs/sessions.txt (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (4 diffs)
- django/trunk/docs/templates.txt (modified) (5 diffs)
- django/trunk/docs/testing.txt (modified) (1 diff)
- django/trunk/docs/url_dispatch.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/add_ons.txt
r4773 r4804 51 51 formtools 52 52 ========= 53 54 **New in Django development version**55 53 56 54 A set of high-level abstractions for Django forms (django.newforms). … … 143 141 =========== 144 142 145 **New in Django development version**146 147 143 A collection of various Django snippets that are useful only for a particular 148 144 country or culture. For example, ``django.contrib.localflavor.usa.forms`` django/trunk/docs/django-admin.txt
r4742 r4804 101 101 ------------------------------ 102 102 103 **New in Django development version**104 105 103 Output to standard output all data in the database associated with the named 106 104 application(s). … … 117 115 flush 118 116 ----- 119 120 **New in Django development version**121 117 122 118 Return the database to the state it was in immediately after syncdb was … … 166 162 only works in PostgreSQL and with certain types of MySQL tables. 167 163 168 install [appname appname ...]169 -----------------------------170 171 **Removed in Django development version**172 173 Executes the equivalent of ``sqlall`` for the given appnames.174 175 164 loaddata [fixture fixture ...] 176 165 ------------------------------ 177 178 **New in Django development version**179 166 180 167 Searches for and loads the contents of the named fixture into the database. … … 351 338 ------------------------------- 352 339 353 **New in Django development version**354 355 340 Prints the custom SQL statements for the given appnames. 356 341 … … 374 359 Prints the CREATE INDEX SQL statements for the given appnames. 375 360 376 sqlinitialdata [appname appname ...]377 --------------------------------------------378 379 **Removed in Django development version**380 381 This method has been renamed ``sqlcustom`` in the development version of Django.382 383 361 sqlreset [appname appname ...] 384 362 -------------------------------------- … … 427 405 ---- 428 406 429 **New in Django development version**430 431 407 Discover and run tests for all installed models. See `Testing Django applications`_ for more information. 432 408 … … 476 452 -------- 477 453 478 **New in Django development version**479 480 454 Example usage:: 481 455 … … 493 467 --indent 494 468 -------- 495 496 **New in Django development version**497 469 498 470 Example usage:: … … 507 479 --------- 508 480 509 **New in Django development version**510 511 481 Inform django-admin that the user should NOT be prompted for any input. Useful 512 482 if the django-admin script will be executed as an unattended, automated … … 531 501 ----------- 532 502 533 **New in Django development version**534 535 503 Example usage:: 536 504 … … 543 511 --adminmedia 544 512 ------------ 545 546 **New in Django development version**547 513 548 514 Example usage:: django/trunk/docs/generic_views.txt
r4593 r4804 98 98 context. By default, this is an empty dictionary. If a value in the 99 99 dictionary is callable, the generic view will call it 100 just before rendering the template. (**This is new in the 101 Django development version.**) 100 just before rendering the template. 102 101 103 102 **Example:** … … 753 752 * ``previous``: The previous page number, as an integer. This is 1-based. 754 753 755 * `last_on_page`: **New in Django development version**The number of the754 * `last_on_page`: The number of the 756 755 last result on the current page. This is 1-based. 757 756 758 * `first_on_page`: **New in Django development version**The number of the757 * `first_on_page`: The number of the 759 758 first result on the current page. This is 1-based. 760 759 django/trunk/docs/middleware.txt
r4420 r4804 105 105 ---------------------------------------------------- 106 106 107 **New in Django development version**108 109 107 Sets ``request.META['REMOTE_ADDR']`` based on 110 108 ``request.META['HTTP_X_FORWARDED_FOR']``, if the latter is set. This is useful django/trunk/docs/model-api.txt
r4746 r4804 363 363 used in URLs. 364 364 365 In the Django development version, you can specify ``maxlength``. If 366 ``maxlength`` is not specified, Django will use a default length of 50. In 367 previous Django versions, there's no way to override the length of 50. 365 Like a CharField, you can specify ``maxlength``. If ``maxlength`` is 366 not specified, Django will use a default length of 50. 368 367 369 368 Implies ``db_index=True``. … … 1458 1457 AND (first_name ILIKE '%lennon%' OR last_name ILIKE '%lennon%') 1459 1458 1460 **New in Django development version:** For faster and/or more restrictive1461 searches, prefix the field namewith an operator:1459 For faster and/or more restrictive searches, prefix the field name 1460 with an operator: 1462 1461 1463 1462 ``^`` … … 1755 1754 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1756 1755 1757 **New in Django development version.**1758 1759 1756 The problem with the way we wrote ``get_absolute_url()`` above is that it 1760 1757 slightly violates the DRY principle: the URL for this object is defined both django/trunk/docs/newforms.txt
r4526 r4804 10 10 ============== 11 11 12 ``django.newforms`` currently is only available in the Django development version 13 -- i.e., it's not available in the Django 0.95 release. For the next Django 14 release, our plan is to do the following: 12 ``django.newforms`` currently is only available in Django beginning 13 with the 0.96 release. the Django development version -- i.e., it's 14 not available in the Django 0.95 release. For the next Django release, 15 our plan is to do the following: 15 16 16 17 * As of revision [4208], we've copied the current ``django.forms`` to django/trunk/docs/request_response.txt
r4538 r4804 385 385 exist. 386 386 387 The ``path`` and ``domain`` arguments are new in the Django development version.388 387 Due to the way cookies work, ``path`` and ``domain`` should be the same 389 388 values you used in ``set_cookie()`` -- otherwise the cookie may not be deleted. django/trunk/docs/sessions.txt
r4420 r4804 266 266 --------------------- 267 267 268 **New in Django development version**269 270 268 Default: ``False`` 271 269 django/trunk/docs/settings.txt
r4767 r4804 429 429 FIXTURE_DIRS 430 430 ------------- 431 432 **New in Django development version**433 431 434 432 Default: ``()`` (Empty tuple) … … 717 715 --------------------- 718 716 719 **New in Django development version**720 721 717 Default: ``False`` 722 718 … … 813 809 ----------- 814 810 815 **New in Django development version**816 817 811 Default: ``'django.test.simple.run_tests'`` 818 812 … … 824 818 TEST_DATABASE_NAME 825 819 ------------------ 826 827 **New in Django development version**828 820 829 821 Default: ``None`` django/trunk/docs/templates.txt
r4647 r4804 113 113 ======== 114 114 115 **New in Django development version**116 117 115 To comment-out part of a template, use the comment syntax: ``{# #}``. 118 116 … … 254 252 completely overriding it. 255 253 256 * **New in Django development version:** For extra readability, you can257 optionally give a *name* to your``{% endblock %}`` tag. For example::254 * For extra readability, you can optionally give a *name* to your 255 ``{% endblock %}`` tag. For example:: 258 256 259 257 {% block content %} … … 549 547 {% endfor %} 550 548 551 2. **New in Django development version.** If given a variable, check whether that552 variable has changed. For example, the following shows the date every time it553 changes, butonly shows the hour if both the hour and the date has changed::549 2. If given a variable, check whether that variable has changed. For 550 example, the following shows the date every time it changes, but 551 only shows the hour if both the hour and the date has changed:: 554 552 555 553 {% for date in days %} … … 829 827 ================== ======= 830 828 831 Note: ``opencomment`` and ``closecomment`` are new in the Django development version.832 833 829 url 834 830 ~~~ 835 836 **New in Django development version**837 831 838 832 **Note that the syntax for this tag may change in the future, as we make it more robust.** … … 976 970 * ``36.15`` gets converted to ``36.2`` 977 971 * ``36`` gets converted to ``36`` 978 979 **New in Django development version**980 972 981 973 If used with a numeric integer argument, ``floatformat`` rounds a number to that django/trunk/docs/testing.txt
r4779 r4804 2 2 Testing Django applications 3 3 =========================== 4 5 **New in Django development version**.6 4 7 5 Automated testing is an extremely useful weapon in the bug-killing arsenal django/trunk/docs/url_dispatch.txt
r4638 r4804 401 401 -------------------------------------- 402 402 403 **New in Django development version.**404 405 403 Similarly, you can pass extra options to ``include()``. When you pass extra 406 404 options to ``include()``, *each* line in the included URLconf will be passed … … 443 441 =========================================== 444 442 445 **New in Django development version.**446 447 443 Some developers find it more natural to pass the actual Python function object 448 444 rather than a string containing the path to its module. This alternative is
