#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>