Django or similar for composite primary keys

后端 未结 4 899
情话喂你
情话喂你 2020-12-14 10:47

I am writing a web application for my engineering company (warning: I am a programmer only by hobby) and was planning on using Django until I hit this snag. The models I wan

4条回答
  •  有刺的猬
    2020-12-14 11:10

    SQLAlchemy has support for composite primary and foreign keys, so any SQLAlchemy based framework (Pylons and Werkzeug comes to mind) should suite your needs. But surrogate primary key is easier to use and better supported anyway.

提交回复
热议问题