Opened 3 months ago

Last modified 3 months ago

#35785 closed Uncategorized

wrong import in documebt — at Initial Version

Reported by: AliEyvazi Owned by:
Component: Documentation Version: 5.0
Severity: Normal Keywords: Document
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top