Changes between Initial Version and Version 1 of Ticket #19683


Ignore:
Timestamp:
Jan 28, 2013, 9:50:28 AM (12 years ago)
Author:
Aymeric Augustin
Comment:

Yes -- it's a good practice to include relevant imports in code samples.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19683

    • Property Triage Stage UnreviewedAccepted
    • Property Type UncategorizedBug
  • Ticket #19683 – Description

    initial v1  
    33In this page, which is about signing, enumerates several examples about how to use it. When it comes to that handling Exception, to be specific,
    44
     5{{{
    56>>> value += 'm'
    67>>> try:
     
    89... except signing.BadSignature:
    910...    print "Tampering detected!"
     11}}}
    1012
    1113I found that these lines failed, the error shows signing.BadSignature is not defined, I tested a while, and then I knew,
    1214
     15{{{
    1316from django.core import signing
     17}}}
    1418
    1519is required. The example miss that. I don't know if that count as a mistake. Besides, the information about previous line is so scarce in reference, do I need to check the source code?
Back to Top