Changes between Initial Version and Version 1 of Ticket #19683


Ignore:
Timestamp:
01/28/2013 09:50:28 AM (2 years ago)
Author:
aaugustin
Comment:

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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19683

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Type changed from Uncategorized to Bug
    • Property Triage Stage changed from Unreviewed to Accepted
  • 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