我需要执行这个查询::
select field11, field12
from Table_1 t1
left outer join Table_2 t2 ON t2.tbl1_id = t1.tbl1_id
where t2.tbl2_id is null
Run Code Online (Sandbox Code Playgroud)
我在python中有这些类:
class Table1(Base):
....
class Table2(Base):
table_id = Column(
Integer,
ForeignKey('Table1.id', ondelete='CASCADE'),
)
....
Run Code Online (Sandbox Code Playgroud)
我如何从下面得到上述内容?
我需要在龙卷风项目中验证数据(纯龙卷风包括静态页面,没有django应用程序)
有两种情况:1)验证HTTP-API或WS获得的JSON对象2)验证HTTP请求中传输的页面形式的数据(RequesHandler)
该怎么办?使用Django FORMS?或者其他什么,它最适合这种情况?你说什么?
我正在编写独立的 Gunicorn 应用程序,如下所示:http://docs.gunicorn.org/en/stable/custom.html ?highlight=standalone
我想在logstash 中记录gunicorn 错误消息。我的问题:
如何在我的应用程序中获取gunicorn错误(并访问)记录器对象并在其上添加处理程序?