Kaydet (Commit) bc52fdc4 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed #3317 -- Fixed typos in docs/testing.txt. Thanks for the patch, Marc Fargas

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 8a3fe9d9
...@@ -244,11 +244,11 @@ can be invoked on the ``Client`` instance. ...@@ -244,11 +244,11 @@ can be invoked on the ``Client`` instance.
``login(path, username, password)`` ``login(path, username, password)``
In a production site, it is likely that some views will be protected with In a production site, it is likely that some views will be protected with
the @login_required URL provided by ``django.contrib.auth``. Interacting the @login_required decorator provided by ``django.contrib.auth``. Interacting
with a URL that has been login protected is a slightly complex operation, with a URL that has been login protected is a slightly complex operation,
so the Test Client provides a simple URL to automate the login process. A so the Test Client provides a simple method to automate the login process. A
call to ``login()`` stimulates the series of GET and POST calls required call to ``login()`` stimulates the series of GET and POST calls required
to log a user into a @login_required protected URL. to log a user into a @login_required protected view.
If login is possible, the final return value of ``login()`` is the response If login is possible, the final return value of ``login()`` is the response
that is generated by issuing a GET request on the protected URL. If login that is generated by issuing a GET request on the protected URL. If login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment