Opened 13 years ago

Closed 13 years ago

#8083 closed (duplicate)

Example Code error in Django Docs for Generic Views

Reported by: lucasx Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: ljhowell@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There is an error in this piece of documentation:

The example shows the 'direct_to_template' function surrounded by 'single quotes'. However, in the book, it shows the function being called without quotes:

Surrounding the direct_to_template function with quotes yields this error:
TypeError at /
'str' object is not callable

When used without quotes it works fine. Simple correction to 'djangoproject' documentation is required.

Change History (1)

comment:1 Changed 13 years ago by Alex Gaynor

Resolution: duplicate
Status: newclosed

Closing as a dupe of #8082.

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