Django: using more than one database with inspectdb?

后端 未结 3 2366
爱一瞬间的悲伤
爱一瞬间的悲伤 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:40

    From the documentation:

    --database DATABASE

    Specifies the database to introspect. Defaults to default.

    So you can inspect your second database with:

    python manage.py inspectdb --database blah
    

    You cannot inspect both at the same time.

提交回复
热议问题