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

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 "'NAME': BASE_DIR / 'db.sqlite3', TypeError: unsupported operand type(s) for /: 'str' and 'str'"

Browse Popular Code Answers by Language