Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#15395 closed (fixed)

http decorators docs doesn't provide import path

Reported by: slinkp@… Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The various decorators documented at http://docs.djangoproject.com/en/dev/topics/http/decorators/ actually live in different modules but only require_http_methods has a documented import path.

For example, in order to use gzip_page(), you have to import it from from django.views.decorators.gzip.
The import is not documented.
Likewise, vary_on_headers and vary_on_cookie actually live in django.views.decorators.vary.

Change History (3)

comment:1 Changed 6 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Gabriel Hurley

Resolution: fixed
Status: newclosed

In [15671]:

Fixed #15395 -- Documented the modules/import paths for the various decorators in django.views.decorators. Thanks to slinkp for the report.

comment:3 Changed 6 years ago by Gabriel Hurley

In [15672]:

[1.2.X] Fixed #15395 -- Documented the modules/import paths for the various decorators in django.views.decorators. Thanks to slinkp for the report.

Backport of [15671] from trunk.

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