Django, Import tables as models

匆匆过客 提交于 2020-01-02 21:50:32

问题


I would like to know if it's possible to use django over existing db tables that defines the models.

Instead of defining models in order to create db tables


回答1:


Did you look in the documentation?




回答2:


i think you are looking for inspectdb



来源:https://stackoverflow.com/questions/1789191/django-import-tables-as-models

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!