Flask inherited classes of tables in multiple identical databases using __bind_key__

前端 未结 2 1144
别那么骄傲
别那么骄傲 2021-01-22 15:04

I\'m trying to build an admin control panel that brings together 4 different ecommerce sites. The sites all have identical database structures (all MySQL).

What\'s Goin

2条回答
  •  死守一世寂寞
    2021-01-22 15:43

    db.Model.metadata.tables['your model name'].info['bind_key'] = 'your bind_name'

    I found a way to make things easy

提交回复
热议问题