报错:
path( 'subject/<int:pindex>',subject.index,name='teacher_subject_index '),IttributeError: module 'teacher.views.subject' has no attribute 'index '
情况:
将teacher的view中的py文件复制到admin下,修改了url,和html
解决办法:
发现是报错的是教师的view,因为我把教师的view中的功能注释掉了才导致系统打不开。