TypeError: argument of type ‘WindowsPath‘ is not iterable - in django python [duplicate]
将setitng里的代码改一下:
'NAME': BASE_DIR / 'db.sqlite3',
改为
'NAME': str(os.path.join(BASE_DIR, "db.sqlite3"))
之后便是:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': str(os.path.join(BASE_DIR, "db.sqlite3"))
}
}
问题解决