yoyicue

使用 sqlalchemy-datatables 呈现 table

  •  
  •   yoyicue · Jan 27, 2014 · 8431 views
    This topic created in 4486 days ago, the information mentioned may be changed or developed.
    其实我们很多后台需求都是 table.
    而 DataTables 是好多年来呈现 table 不多的选择之一
    能解决大部分对于 table 的需求.

    但是 API 有些繁琐, 这次恰好看到了有 Python 相关的封装, 推荐给大家

    Pyramid 框架
    https://github.com/Pegase745/sqlalchemy-datatables

    稍微改了下, 做成了 Flask 框架的:
    https://github.com/Pegase745/sqlalchemy-datatables

    Django 的选择貌似多了些:
    https://github.com/noirbizarre/django-eztables
    https://github.com/pivotal-energy-solutions/django-datatable-view
    https://bitbucket.org/pigletto/django-datatables-view
    Supplement 1  ·  May 28, 2014
    发觉粘贴的修改地址写错了, 应该是:
    https://github.com/yoyicue/sqlalchemy-datatables
    5 replies    2014-05-28 12:48:50 +08:00
    tanywei
        1
    tanywei  
       May 27, 2014
    代码呢?
    yoyicue
        2
    yoyicue  
    OP
       May 28, 2014
    @tanywei 我才发觉粘贴错了, 在这里:
    https://github.com/yoyicue/sqlalchemy-datatables
    clino
        3
    clino  
       May 28, 2014
    按文档里的:"Testing the Pyramid based ''test-project''"
    部分操作以后在 http://localhost:6543 结果有错:
    ValueError
    ValueError: No such renderer factory .pt
    Traceback (most recent call last)
    yoyicue
        4
    yoyicue  
    OP
       May 28, 2014
    @clino 我没改写 test-project
    clino
        5
    clino  
       May 28, 2014
    看不到例子,不知道呈现 table 是什么意思?数据库的表结构和关系吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:01 · PVG 23:01 · LAX 08:01 · JFK 11:01
    ♥ Do have faith in what you're doing.