소스 검색

Fixed #19683 - Added a missing import in signing example.

Thanks sunsongxp@ for the report.
Tim Graham 12 년 전
부모
커밋
537d44b1b9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      docs/topics/signing.txt

+ 1 - 0
docs/topics/signing.txt

@@ -58,6 +58,7 @@ You can retrieve the original value using the ``unsign`` method::
 If the signature or value have been altered in any way, a
 ``django.core.signing.BadSignature`` exception will be raised::
 
+    >>> from django.core import signing
     >>> value += 'm'
     >>> try:
     ...    original = signer.unsign(value)