【文件属性】:
文件名称:three-blind-mice:使用 SQLAlchemy 事件限制一对多关系中多的数量的示例
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-15 14:42:42
Python
三盲小鼠
使用 SQLAlchemy 事件限制一对多关系中多的数量的示例。
设置
$ git clone https://github.com/elbow-jason/three-blind-mice.git && cd three-blind-mice
在虚拟环境中(如果你觉得有点疯狂,或者不在)运行:
$ pip install -r requirements.txt
运行服务器
$ python three-blind-mice.py
在浏览器中访问
做吧!
添加鼠标 3 次,它工作正常。 尝试添加第四个并引发自定义异常。
【文件预览】:
three-blind-mice-master
----blogentry.md(3KB)
----three-blind-mice.py(2KB)
----requirements.txt(121B)
----README.md(599B)
----.gitignore(713B)