1.Terminal运行
python manage.py runserver 8000
报错TypeError: unsupported operand type(s) for /: 'str' and 'str'
2.解决setting.py中
'DIRS': [BASE_DIR / 'templates']改为
'DIRS': [str.format(BASE_DIR, '/templates')]
3.回到manage.py运行成功
1.Terminal运行
python manage.py runserver 8000
报错TypeError: unsupported operand type(s) for /: 'str' and 'str'
2.解决setting.py中
'DIRS': [BASE_DIR / 'templates']改为
'DIRS': [str.format(BASE_DIR, '/templates')]
3.回到manage.py运行成功