mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Small typo fixes. Thanks, jdetaeye, Ionut Ciocirlan, David Reynolds and adamv.
Fixed #6123, #6133, #6179, #6194. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -814,7 +814,7 @@ def ssi(parser, token): | |||||||
|     Outputs the contents of a given file into the page. |     Outputs the contents of a given file into the page. | ||||||
|  |  | ||||||
|     Like a simple "include" tag, the ``ssi`` tag includes the contents |     Like a simple "include" tag, the ``ssi`` tag includes the contents | ||||||
|     of another file -- which must be specified using an absolute page -- |     of another file -- which must be specified using an absolute path -- | ||||||
|     in the current page:: |     in the current page:: | ||||||
|  |  | ||||||
|         {% ssi /home/html/ljworld.com/includes/right_generic.html %} |         {% ssi /home/html/ljworld.com/includes/right_generic.html %} | ||||||
|   | |||||||
| @@ -44,8 +44,8 @@ Our class looks something like this:: | |||||||
|         # ... (other possibly useful methods omitted) ... |         # ... (other possibly useful methods omitted) ... | ||||||
|  |  | ||||||
| This is just an ordinary Python class, with nothing Django-specific about it. | This is just an ordinary Python class, with nothing Django-specific about it. | ||||||
| We'd like to be able to things like this in our models (we assume the ``hand`` | We'd like to be able to do things like this in our models (we assume the | ||||||
| attribute on the model is an instance of ``Hand``):: | ``hand`` attribute on the model is an instance of ``Hand``):: | ||||||
|  |  | ||||||
|     example = MyModel.objects.get(pk=1) |     example = MyModel.objects.get(pk=1) | ||||||
|     print example.hand.north |     print example.hand.north | ||||||
|   | |||||||
| @@ -452,7 +452,7 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in | |||||||
|  |  | ||||||
| ``HttpResponseNotModified`` | ``HttpResponseNotModified`` | ||||||
|     The constructor doesn't take any arguments. Use this to designate that a |     The constructor doesn't take any arguments. Use this to designate that a | ||||||
|     page hasn't been modified since the user's last request. |     page hasn't been modified since the user's last request (status code 304). | ||||||
|  |  | ||||||
| ``HttpResponseBadRequest`` | ``HttpResponseBadRequest`` | ||||||
|     **New in Django development version.** |     **New in Django development version.** | ||||||
|   | |||||||
| @@ -691,8 +691,8 @@ This way, you'll be able to pass, say, an integer to this filter, and it | |||||||
| won't cause an ``AttributeError`` (because integers don't have ``lower()`` | won't cause an ``AttributeError`` (because integers don't have ``lower()`` | ||||||
| methods). | methods). | ||||||
|  |  | ||||||
| Registering a custom filters | Registering custom filters | ||||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||||
|  |  | ||||||
| Once you've written your filter definition, you need to register it with | Once you've written your filter definition, you need to register it with | ||||||
| your ``Library`` instance, to make it available to Django's template language:: | your ``Library`` instance, to make it available to Django's template language:: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user