Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。
尝试新的跨平台 PowerShell https://aka.ms/pscore6
File "C:\Users\lenovo\PycharmProjects\Djangotest\test9\lib\site-packages\django\conf\__init__.py", line 56, in __getattr__
self._setup(name)
File "C:\Users\lenovo\PycharmProjects\Djangotest\test9\lib\site-packages\django\conf\__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "C:\Users\lenovo\PycharmProjects\Djangotest\test9\lib\site-packages\django\conf\__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "D:\python2\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\Users\lenovo\PycharmProjects\Djangotest\test\test9\test9\settings.py", line 57, in <module>
'DIRS': [BASE_DIR / 'templates']
TypeError: unsupported operand type(s) for /: 'str' and 'str'
PS C:\Users\lenovo\PycharmProjects\Djangotest\test\test9>