我的 url.py 就像:
url(r'^admin/employee/employee_master/isEmpPresent/(\d{4})/$', 'employee.views.isEmpPresent' ),
我的views.py是:
def isEmpPresent(request,emp_id):
now = datetime.datetime.now()
return HttpResponse(emp_id)
我的网址是:
http://127.0.0.1:8000/admin/employee/employee_master/isEmpPresent/333/
但我收到错误“找不到页面”。我在犯什么错误?提前致谢。