[Django] #33163: Detail how to connect signals

1 view
Skip to first unread message

Django

unread,
Oct 2, 2021, 9:56:01 AM10/2/21
to django-...@googlegroups.com
#33163: Detail how to connect signals
-------------------------------------+-------------------------------------
Reporter: | Owner: roxanebellot
roxanebellot |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: 3.2
Documentation | Keywords: documentation
Severity: Normal | signals app config
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
See https://forum.djangoproject.com/t/load-signals-automatically/9666

My original idea was to import automatically everything in the submodule
`signals` to avoid wondering why the signals do not work. Finally, we
setted on detailling the documentation, expanding the
[https://docs.djangoproject.com/en/dev/topics/signals/#connecting-
receiver-functions "Where should this code live ?" note] and including a
sample AppConfig

--
Ticket URL: <https://code.djangoproject.com/ticket/33163>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 2, 2021, 10:01:54 AM10/2/21
to django-...@googlegroups.com
#33163: Detail how to connect signals
-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage:
signals app config | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by roxanebellot):

You can find the [https://github.com/django/django/pull/14925 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:1>

Django

unread,
Oct 4, 2021, 4:48:04 AM10/4/21
to django-...@googlegroups.com
#33163: Add AppConfig.ready() example to the admonition about connecting receiver
functions.

-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: signals appconfig | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Adam Johnson (added)
* keywords: documentation signals app config => signals appconfig
* stage: Unreviewed => Accepted
* needs_better_patch: 0 => 1


Comment:

Thanks for this suggestion. I agree that `AppConfig.ready()` example would
be helpful, but I don't think a separate section is needed.

[https://github.com/django/django/pull/14925 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:2>

Django

unread,
Nov 17, 2021, 4:00:39 AM11/17/21
to django-...@googlegroups.com
#33163: Add AppConfig.ready() example to the admonition about connecting receiver
functions.
-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: signals appconfig | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:3>

Django

unread,
Nov 17, 2021, 6:30:57 AM11/17/21
to django-...@googlegroups.com
#33163: Add AppConfig.ready() example to the admonition about connecting receiver
functions.
-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: closed
Component: Documentation | Version: 3.2
Severity: Normal | Resolution: fixed

Keywords: signals appconfig | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"350d15d79c01d2dd7c6c3196a4a01a5f63b45148" 350d15d7]:
{{{
#!CommitTicketReference repository=""
revision="350d15d79c01d2dd7c6c3196a4a01a5f63b45148"
[4.0.x] Fixed #33163 -- Added example of connection signal handlers in
AppConfig.ready() to docs.

Backport of 2d124f6a1c45afdde8be90c01043e0b14455d41e from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:5>

Django

unread,
Nov 17, 2021, 6:30:57 AM11/17/21
to django-...@googlegroups.com
#33163: Add AppConfig.ready() example to the admonition about connecting receiver
functions.
-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: closed
Component: Documentation | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: signals appconfig | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"2d124f6a1c45afdde8be90c01043e0b14455d41e" 2d124f6a]:
{{{
#!CommitTicketReference repository=""
revision="2d124f6a1c45afdde8be90c01043e0b14455d41e"


Fixed #33163 -- Added example of connection signal handlers in
AppConfig.ready() to docs.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:4>

Django

unread,
Nov 26, 2021, 5:16:45 AM11/26/21
to django-...@googlegroups.com
#33163: Add AppConfig.ready() example to the admonition about connecting receiver
functions.
-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: closed
Component: Documentation | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: signals appconfig | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"75ee7057e98dd9725fabb98cabe42966fa4c8222" 75ee7057]:
{{{
#!CommitTicketReference repository=""
revision="75ee7057e98dd9725fabb98cabe42966fa4c8222"
Refs #33163 -- Corrected example of connection signal handlers in
AppConfig.ready().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:6>

Django

unread,
Nov 26, 2021, 5:17:41 AM11/26/21
to django-...@googlegroups.com
#33163: Add AppConfig.ready() example to the admonition about connecting receiver
functions.
-------------------------------------+-------------------------------------
Reporter: roxanebellot | Owner:
Type: | roxanebellot
Cleanup/optimization | Status: closed
Component: Documentation | Version: 3.2
Severity: Normal | Resolution: fixed
Keywords: signals appconfig | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"1ab5842760749e5cc8e46ebf794b3071b6c31ccf" 1ab58427]:
{{{
#!CommitTicketReference repository=""
revision="1ab5842760749e5cc8e46ebf794b3071b6c31ccf"
[4.0.x] Refs #33163 -- Corrected example of connection signal handlers in
AppConfig.ready().

Backport of 75ee7057e98dd9725fabb98cabe42966fa4c8222 from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33163#comment:7>

Reply all
Reply to author
Forward
0 new messages