In the django settings.py, the database is by default :
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
But when i do in python a={'a':'a'/'b'}, i get the error TypeError: unsupported operand type(s) for /: 'str' and 'str'.
How come the error doesnt show up in django?
I would like to define a different path for my database, in a subfolder so as django automatically create the subfolder and the sqlite database.
How can i do that?