Answers for "rgument of type 'WindowsPath' is not iterable"

5

TypeError: argument of type 'WindowsPath' is not iterable

In settings.py change the NAME of your Database like this:

import os
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': str(os.path.join(BASE_DIR, "db.sqlite3")),
    }
}
Posted by: Guest on June-03-2021

Code answers related to "rgument of type 'WindowsPath' is not iterable"

Browse Popular Code Answers by Language