#35785: wrong import in documebt
---------------------------+-----------------------------------------
     Reporter:  AliEyvazi  |                     Type:  Uncategorized
       Status:  new        |                Component:  Uncategorized
      Version:  5.0        |                 Severity:  Normal
     Keywords:  Document   |             Triage Stage:  Unreviewed
    Has patch:  0          |      Needs documentation:  0
  Needs tests:  0          |  Patch needs improvement:  0
Easy pickings:  0          |                    UI/UX:  0
---------------------------+-----------------------------------------
 Dear friends

 While i was studying Django Ducument, i encounter with an incorrect
 import.

 In this page: "https://docs.djangoproject.com/en/5.1/topics/signing
 /#signing-complex-data" approximately in the middle of page,
 there is an incorrect import:

 >>>
 ----

 == from django.core import signing
 >>> value += "m"
 >>> try:
 ...     original = signer.unsign(value)
 ... except signing.BadSignature:
 ...     print("Tampering detected!")
 ...

 hope to be useful for you and others.

 regards
 Ali
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35785>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019227c8a682-15388d35-2ecd-4f57-91af-f512ed978620-000000%40eu-central-1.amazonses.com.

Reply via email to