Changeset 7361
- Timestamp:
- 03/24/08 23:42:21 (4 months ago)
- Files:
-
- django/trunk/django/conf/global_settings.py (modified) (1 diff)
- django/trunk/docs/i18n.txt (modified) (3 diffs)
- django/trunk/docs/install.txt (modified) (1 diff)
- django/trunk/docs/modelforms.txt (modified) (1 diff)
- django/trunk/docs/request_response.txt (modified) (2 diffs)
- django/trunk/docs/syndication_feeds.txt (modified) (1 diff)
- django/trunk/docs/tutorial04.txt (modified) (1 diff)
- django/trunk/docs/url_dispatch.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/conf/global_settings.py
r7329 r7361 288 288 SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether sessions expire when a user closes his browser. 289 289 SESSION_ENGINE = 'django.contrib.sessions.backends.db' # The module to store session data 290 SESSION_FILE_PATH = None # Directory to store session files if using the file session module. If set to Nonethe backend will use a sensible default.290 SESSION_FILE_PATH = None # Directory to store session files if using the file session module. If None, the backend will use a sensible default. 291 291 292 292 ######### django/trunk/docs/i18n.txt
r7357 r7361 826 826 827 827 * Positional interpolation: ``obj`` contains a JavaScript Array object 828 whose elements values are then sequentially interpolated in their828 whose elements values are then sequentially interpolated in their 829 829 corresponding ``fmt`` placeholders in the same order they appear. 830 830 For example:: … … 833 833 'There are %s objects. Remaining: %s', 11); 834 834 s = interpolate(fmts, [11, 20]); 835 // s is 'There are 11 objects. Remaining: 20'835 // s is 'There are 11 objects. Remaining: 20' 836 836 837 837 * Named interpolation: This mode is selected by passing the optional … … 845 845 846 846 fmts = ngettext('Total: %(total)s, there is %(count)s object', 847 'there are %(count)s of a total of %(total)s objects', d.count);847 'there are %(count)s of a total of %(total)s objects', d.count); 848 848 s = interpolate(fmts, d, true); 849 849 django/trunk/docs/install.txt
r7314 r7361 173 173 you'll want to pay close attention to `the development timeline`_, 174 174 and you'll want to keep an eye on `the list of 175 backwards-incompatible changes`_ ; this will help you stay on top175 backwards-incompatible changes`_. This will help you stay on top 176 176 of any new features you might want to use, as well as any changes 177 you'll need to make to your code when updating your copy of Django 178 ( for stable releases, any necessary changes are documented in the179 release notes ).177 you'll need to make to your code when updating your copy of Django. 178 (For stable releases, any necessary changes are documented in the 179 release notes.) 180 180 181 181 .. _the development timeline: http://code.djangoproject.com/timeline django/trunk/docs/modelforms.txt
r7305 r7361 237 237 ``is_multipart()`` method is used to determine whether a form requires 238 238 multipart file upload (and hence whether ``request.FILES`` must be 239 passed to the form), etc. ; see `the standard newforms documentation`_239 passed to the form), etc. See `the standard newforms documentation`_ 240 240 for more information. 241 241 django/trunk/docs/request_response.txt
r7334 r7361 144 144 ``urlconf`` 145 145 Not defined by Django itself, but will be read if other code 146 (e.g., a custom middleware class) sets it ; when present, this will147 be used as the root URL Conf for the current request, overriding146 (e.g., a custom middleware class) sets it. When present, this will 147 be used as the root URLconf for the current request, overriding 148 148 the ``ROOT_URLCONF`` setting. See `How Django processes a 149 149 request`_ for details. 150 150 151 151 .. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request 152 153 152 154 153 Methods … … 203 202 **New in Django development version** 204 203 205 Returns ``True`` if the request was made via an XMLHttpRequestby checking206 the ``HTTP_X_REQUESTED_WITH`` header for the string *'XMLHttpRequest'*. The207 following major Java script libraries all send this header:208 209 * jQuery210 * Dojo211 * MochiKit212 * MooTools213 * Prototype214 * YUI215 216 If you write your own XMLHttpRequest call (on the browser side), you will217 have to set this header manually to use this method.204 Returns ``True`` if the request was made via an ``XMLHttpRequest``, by checking 205 the ``HTTP_X_REQUESTED_WITH`` header for the string ``'XMLHttpRequest'``. The 206 following major JavaScript libraries all send this header: 207 208 * jQuery 209 * Dojo 210 * MochiKit 211 * MooTools 212 * Prototype 213 * YUI 214 215 If you write your own XMLHttpRequest call (on the browser side), you'll 216 have to set this header manually if you want ``is_ajax()`` to work. 218 217 219 218 QueryDict objects django/trunk/docs/syndication_feeds.txt
r7328 r7361 251 251 ``ObjectDoesNotExist`` exception will be raised, so ``/rss/beats/`` will 252 252 generate a 404 page. But you can handle this case however you like. For 253 example you could generate a combined feed for all beats.253 example, you could generate a combined feed for all beats. 254 254 255 255 * To generate the feed's ``<title>``, ``<link>`` and ``<description>``, django/trunk/docs/tutorial04.txt
r7315 r7361 40 40 41 41 * ``forloop.counter`` indicates how many times the ``for`` tag has 42 gone through its loop ; for more information, see `the42 gone through its loop. For more information, see `the 43 43 documentation for the "for" tag`_. 44 44 django/trunk/docs/url_dispatch.txt
r7303 r7361 33 33 algorithm the system follows to determine which Python code to execute: 34 34 35 1. Django determines the root URL Conf module to use; ordinarily35 1. Django determines the root URLconf module to use. Ordinarily, 36 36 this is the value of the ``ROOT_URLCONF`` setting in your 37 37 `settings file`_, but if the incoming ``HttpRequest`` object
