Re: [Django] #15396: full path to GzipMiddleware undocumented

33 views
Skip to first unread message

Django

unread,
Mar 16, 2012, 4:12:44 PM3/16/12
to django-...@googlegroups.com
#15396: full path to GzipMiddleware undocumented
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version:
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by claudep):

The add_module_names directive in docs/conf.py is currently set to False.
If set to True, it would prepend the module path to the class. However,
there are almost 200 module:: or currentmodule:: directives in the
documentation, so I don't know if displaying the full path is always the
desired effect.

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

Django

unread,
Nov 12, 2012, 11:56:34 AM11/12/12
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced

-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by ptone):

* version: => master


Comment:

#19281 was a dupe for the more general sense, so I've updated the summary
to be a bit more generic.

This has always something that has bugged me - and has been somewhere on
my todo list since this tweet crossed my path:

https://twitter.com/doughellmann/statuses/248093601886765056 :
"Python Dev Pro-tip: Include the import statements in each example in your
documentation. Your casual readers will thank you."

So there are two places to add this information:

As information or heading in the reference documentation - and in code
listings.

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

Django

unread,
Feb 20, 2013, 1:50:02 PM2/20/13
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by aaugustin):

#19864 was another duplicate.

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

Django

unread,
Feb 20, 2013, 2:40:38 PM2/20/13
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by davesque):

From duplicate #19864, I had thought about Carl's suggestion that the
heading should instead state the full resource path instead of just the
resource name:

'''''class'' django.template.response.TemplateResponse'''
instead of
'''''class'' TemplateResponse'''

I wasn't sure if that would sometimes be too verbose. That's why I had
suggested the alternative:

module: {{{django.template.response}}}
'''''class'' TemplateResponse''

However, I prefer Carl's suggestion if it doesn't disrupt the layout of
the current docs too much.

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:8>

Django

unread,
Sep 27, 2013, 5:35:29 AM9/27/13
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by EvilDMP):

I agree that simply turning on display of modules with `add_module_names`
would be a rather scattershot approach. Module names are not always
provided anyway.

I think that the best approach would be for code samples to include
imports, or at least the first one of a batch of them.

Similarly, if an object's path is not clear from its reasonably immediate
context, then it should be spelled out in full the first time it's
introduced in its reference documentation.

If there's a list of objects all from the same module, the module can be
mentioned once at the top of the list.

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:9>

Django

unread,
Oct 8, 2013, 7:55:51 AM10/8/13
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by denis_g@…):

It would be very nice to have this option somehow available, but disabled
by default if you think it's not good to enable it for all.

For instance, full resource path may be rendered with the `display: none`
style, so people who need it may enable it with the simple CSS rule.

Or there may be some kind of JavaScript magic, which would display the
full resource path on user click or hover, or whatever else.

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:10>

Django

unread,
Apr 17, 2015, 11:07:52 AM4/17/15
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by timgraham):

One option to display the full module path is something like this:
{{{
#!diff
diff --git a/docs/ref/models/expressions.txt
b/docs/ref/models/expressions.txt
index f74c4f2..d0b4a14 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -360,7 +360,8 @@ output value.
``ExpressionWrapper()`` expressions
-----------------------------------

-.. class:: ExpressionWrapper(expression, output_field)
+.. class:: django.db.models.ExpressionWrapper(expression, output_field)
+ :module:

.. versionadded:: 1.8

}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:11>

Django

unread,
Sep 26, 2019, 3:27:35 PM9/26/19
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: mayela
Type: Bug | Status: assigned

Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by mayela):

* owner: nobody => mayela
* status: new => assigned


Comment:

I just added a little note about adding the full path of the class in the
settings file

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:12>

Django

unread,
Oct 2, 2019, 9:00:37 AM10/2/19
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+---------------------------------------
Reporter: slinkp@… | Owner: Mar Sánchez

Type: Bug | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

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

In [changeset:"f1d4a540b29c6766b988852bc302ac036a2d82e2" f1d4a540]:
{{{
#!CommitTicketReference repository=""
revision="f1d4a540b29c6766b988852bc302ac036a2d82e2"
Refs #15396 -- Mentioned full path to GZipMiddleware in documentation.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:13>

Django

unread,
Oct 2, 2019, 9:00:52 AM10/2/19
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+---------------------------------------
Reporter: slinkp@… | Owner: Mar Sánchez
Type: Bug | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

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

In [changeset:"9fa6c737df0cbdc23702b849b793e7f3eb067b3e" 9fa6c737]:
{{{
#!CommitTicketReference repository=""
revision="9fa6c737df0cbdc23702b849b793e7f3eb067b3e"
[3.0.x] Refs #15396 -- Mentioned full path to GZipMiddleware in
documentation.

Backport of f1d4a540b29c6766b988852bc302ac036a2d82e2 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:14>

Django

unread,
Oct 2, 2019, 9:01:14 AM10/2/19
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+---------------------------------------
Reporter: slinkp@… | Owner: Mar Sánchez
Type: Bug | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

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

In [changeset:"f5f4c28bfcf5b1303689ed8d854d5e0d9cfb14ea" f5f4c28b]:
{{{
#!CommitTicketReference repository=""
revision="f5f4c28bfcf5b1303689ed8d854d5e0d9cfb14ea"
[2.2.x] Refs #15396 -- Mentioned full path to GZipMiddleware in
documentation.

Backport of f1d4a540b29c6766b988852bc302ac036a2d82e2 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:15>

Django

unread,
Apr 21, 2021, 4:56:43 AM4/21/21
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: (none)
Type: Bug | Status: new
Component: Documentation | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: Mar Sánchez => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:16>

Django

unread,
Apr 3, 2023, 12:10:09 AM4/3/23
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+----------------------------------------
Reporter: slinkp@… | Owner: Akshat verma
Type: Bug | Status: assigned

Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by Akshat verma):

* owner: (none) => Akshat verma


* status: new => assigned


Comment:

Try adding add_module_names = False in conf.py

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:17>

Django

unread,
Mar 18, 2024, 3:11:33 AM3/18/24
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------+------------------------------------
Reporter: slinkp@… | Owner: (none)
Type: Bug | Status: new
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Ülgen Sarıkavak):

* cc: Ülgen Sarıkavak (added)

Django

unread,
Oct 8, 2025, 12:14:40 AM10/8/25
to django-...@googlegroups.com
#15396: full path to modules in documentation inconsistently referenced
-------------------------------------+-------------------------------------
Reporter: slinkp@… | Owner: Eddy
| ADEGNANDJOU
Type: Bug | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Eddy ADEGNANDJOU):

* owner: (none) => Eddy ADEGNANDJOU
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/15396#comment:18>
Reply all
Reply to author
Forward
0 new messages