mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user