user_image
By  新的一天要努力吖    On   2020年12月2日 14:43

对了刘老师,'DIRS': [BASE_DIR / 'templates'], 这行代码我写的就报错了:‘DIRS‘: [BASE_DIR / ‘templates‘] TypeError: unsupported operand type(s) for /: ‘str‘ and ‘str‘,然后把/改成,即'DIRS': [BASE_DIR , 'templates']就可以了,这是为什么呀?