Answers for "settings.py", line 88, in <module> 'name': base_dir / 'db.sqlite3', typeerror: unsupported operand type(s) for /: 'str' and 'str' error"

1

'NAME': BASE_DIR / 'db.sqlite3', TypeError: unsupported operand type(s) for /: 'str' and 'str'

BASE_DIR = Path(__file__).resolve().parent.parent

db_path = BASE_DIR / 'db.sqlite3'

# or

db_path2 = os.path.join(str(BASE_DIR), 'db.sqlite3')
Posted by: Guest on March-22-2021

Code answers related to "settings.py", line 88, in <module> 'name': base_dir / 'db.sqlite3', typeerror: unsupported operand type(s) for /: 'str' and 'str' error"

Browse Popular Code Answers by Language