Django: using more than one database with inspectdb?

后端 未结 3 2395
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-20 02:04

My settings file\'s database section looks like this:

DATABASES = {
    \'default\': {
        \'ENGINE\': \'django.db.backends.sqlite3\',
        \'NAME\': \'C:         


        
3条回答
  •  孤街浪徒
    2021-02-20 02:18

    If you are trying @solarissmoke's answer for Django 2.*:

    Don't wrap the database name with quotes, otherwise it will give you a KeyError and a ConnectionDoesnotExist error.

    python manage.py inspectdb --database blah
    

提交回复
热议问题