My settings file's database section looks like this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'C:/Users/Desktop/test.db'
},
'blah':{
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'C:/Users/Desktop/test2.db'
}
}
When I run the command python manage.py inspectdb > models.py
, I only get the model generated for the default database, but not the second one. How could I get both models generated?
Connection 'blah' doesn't exist
. Do I need to do something prior to this? Does the directory I'm in matter? – Merits