[Django] #35785: wrong import in documebt

6 views
Skip to first unread message

Django

unread,
Sep 25, 2024, 2:05:19 AM9/25/24
to django-...@googlegroups.com
#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.

Django

unread,
Sep 25, 2024, 2:40:02 AM9/25/24
to django-...@googlegroups.com
#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>
Reply all
Reply to author
Forward
0 new messages