Opened 15 years ago

Closed 15 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: no UI/UX: no

Description (last modified by Ramiro Morales)

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 by Ramiro Morales, 15 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

(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