[Fixed]-TypeError: argument of type 'WindowsPath' is not iterable โ€“ in django python

43๐Ÿ‘

โœ…

I got this cleared by changing DATABASES in settings.py file:

change

'NAME': BASE_DIR / 'db.sqlite3',

to

'NAME': str(os.path.join(BASE_DIR, "db.sqlite3"))

this works

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': str(os.path.join(BASE_DIR, "db.sqlite3"))
    }
}
๐Ÿ‘คFaiz P

Leave a comment