mirror of
https://github.com/django/django.git
synced 2025-08-09 21:38:18 +00:00
[1.6.x] Fixed some typos in the documentation.
Thanks to Rodolfo Carvalho and Piotr Kasprzyk
for the patch.
Partial backport of ea4da8e63c
from master.
This commit is contained in:
parent
5cda1d2702
commit
4aaea2921d
8 changed files with 9 additions and 9 deletions
|
@ -350,7 +350,7 @@ With that ready, we can ask the client to do some work for us::
|
|||
>>> response.status_code
|
||||
404
|
||||
>>> # on the other hand we should expect to find something at '/polls/'
|
||||
>>> # we'll use 'reverse()' rather than a harcoded URL
|
||||
>>> # we'll use 'reverse()' rather than a hardcoded URL
|
||||
>>> from django.core.urlresolvers import reverse
|
||||
>>> response = client.get(reverse('polls:index'))
|
||||
>>> response.status_code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue