gpt4 book ai didi

django - 类型错误 : unsupported operand type(s) for/: 'str' and 'str' django setting. py

转载 作者:行者123 更新时间:2023-12-05 01:32:48 25 4
gpt4 key购买 nike

当我参加我的 django 类(class)时,我遇到了这个错误,我不知道如何解决这里是我的 settings.py

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}

最佳答案

你必须像这样删除/和 +

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR + 'db.sqlite3',
}
}

关于django - 类型错误 : unsupported operand type(s) for/: 'str' and 'str' django setting. py,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65377461/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com