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