Opened 6 hours ago

Closed 6 hours ago

#35785 closed Uncategorized (invalid)

wrong import in documebt — at Version 1

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 (last modified by Mariusz Felisiak)

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 (1)

comment:1 by Mariusz Felisiak, 6 hours ago

Component: UncategorizedDocumentation
Description: modified (diff)
Resolution: invalid
Status: newclosed

Thanks for the ticket, however, I see nothing wrong in this import. It works for me.

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