roytang.net Posts Photos Archives About

urlpatterns = patterns('',
(r'^salaries/employee/$', list_detail.object_list, 'employee_info'), )

The third item in the tuple needs to be a dictionary, not a string. Try removing the single quotes around employee_info:

urlpatterns = patterns('',     
    (r'^salaries/employee/$', list_detail.object_list, employee_info),
)
Sat, Jan. 9, 2010, 12:47 p.m. / / notes / #python #django #replies #wally / Syndicated: stackexchange

Last modified at: Oct. 12, 2020, 1:52 a.m. Source file