Opened 14 years ago

Closed 14 years ago

Last modified 14 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: no UI/UX: no

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 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Gabriel Hurley, 14 years ago

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 by Gabriel Hurley, 14 years ago

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