Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 years ago by gabrielhurley

  • Resolution set to fixed
  • Status changed from new to closed

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 5 years ago by gabrielhurley

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