Django: using more than one database with inspectdb?

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

    You can specify a specific database like this:

    python manage.py inspectdb --database=blah > you_app/models.py
    

提交回复
热议问题