diff options
Diffstat (limited to 'docs/intro/tutorial05.txt')
| -rw-r--r-- | docs/intro/tutorial05.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt index 5cc4c2a963..45fdb3746d 100644 --- a/docs/intro/tutorial05.txt +++ b/docs/intro/tutorial05.txt @@ -362,7 +362,7 @@ With that ready, we can ask the client to do some work for us:: 404 >>> # on the other hand we should expect to find something at '/polls/' >>> # we'll use 'reverse()' rather than a hardcoded URL - >>> from django.core.urlresolvers import reverse + >>> from django.urls import reverse >>> response = client.get(reverse('polls:index')) >>> response.status_code 200 @@ -447,7 +447,7 @@ Add the following to ``polls/tests.py``: .. snippet:: :filename: polls/tests.py - from django.core.urlresolvers import reverse + from django.urls import reverse and we'll create a shortcut function to create questions as well as a new test class: |
