Opened 7 years ago

Closed 7 years ago

#15038 closed (duplicate)


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


Hi guys, i have spent hours looking for the solution and i think the documentation is wrong.
my code wasn't working and now it is after i did the fix.

urlpatterns = patterns(,

('$', 'direct_to_template', { 'template': 'abc.html' }),
polls/$', 'polls.views.index'),


The code above does not work because the docs say to me put 'direct_to_template', with '" , and not direct_to_template without it.
The doc url:

After hours i found the correct solution in the djangobook. There they say the right thing, put direct_to_template without :

Thanks and hope to help with that.

Change History (1)

comment:1 Changed 7 years ago by Łukasz Rekucki

Resolution: duplicate
Status: newclosed

Duplicate of #15037.

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