Opened 6 years ago

Closed 6 years ago

#12490 closed (invalid)

Error in documentation for direct_to_template

Reported by: finngruwier Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords: direct_to_template
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by ramiro)

On the page found here:

http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-simple-direct-to-template

direct_to_template is enclosed by '' which it shouldn't be.

Change History (1)

comment:1 Changed 6 years ago by ramiro

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

(reformatted description)

That way of specifying the view (using a string literal with the name of the view calable) is valid syntax in Django URL map entries. See
http://docs.djangoproject.com/en/dev//topics/http/urls/#the-view-prefix and http://docs.djangoproject.com/en/dev//topics/http/urls/#passing-callable-objects-instead-of-strings

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