return database_name == ':memory:' or 'mode=memory' in database_name
TypeError: argument of type 'WindowsPath' is not iterable
This error didn't go away, so I'll leave a note for anyone using djanogo in a windows environment. You need to change the database part of setting.py.
'NAME': BASE_DIR / 'db.sqlite3',
Change this part.
'NAME': str(BASE_DIR / 'db.sqlite3'),
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': str(BASE_DIR / 'db.sqlite3'),
}
}
Arguments cannot be used many times in translation.
Recommended Posts