#35785: wrong import in documebt
-------------------------------+--------------------------------------
     Reporter:  AliEyvazi      |                    Owner:  (none)
         Type:  Uncategorized  |                   Status:  closed
    Component:  Documentation  |                  Version:  5.0
     Severity:  Normal         |               Resolution:  invalid
     Keywords:  Document       |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * component:  Uncategorized => Documentation
 * resolution:   => invalid
 * status:  new => closed


Old description:

> 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

New description:

 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

--
Comment:

 Thanks for the ticket, however, I see nothing wrong in this import. It
 works for me.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35785#comment:1>
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/0107019227e86e91-9f962a45-9d04-4e0d-b8d4-06db4a7c2b35-000000%40eu-central-1.amazonses.com.

Reply via email to