def test(request, arg1, arg2):
c = [[calendar.month_name[(i.date).month],i.count] for i in
Model_name.objects.filter(worker = arg1, process = arg2)]
c.insert(0,['Month', 'Counts']) # It's for Chart Purpose
return render_to_response('test3.html', {'array': json.dumps(array3)})
這是我的觀點和URLDjango的網址錯誤
url(r'^test/(?P<ass_name>/<process_name>\w+)/$', 'model_name.views.test', name='test')
拋出我的404。有什麼建議麼?
請回溯發佈錯誤。 –
只是普通的404錯誤'找不到頁面(404)' – Thuruv
你打的是什麼網址? –