10 2019 档案
摘要:class TestView(APIView): def get(self,request): try: response = HttpResponse(content_type='application/zip') zf = zipfile.ZipFile(response,'w') zf.wr...
阅读全文
摘要:cascade 删除表级联 SELECT create_hypertable('tb_111a7f37a7f04d6fae334f198ed6a474', 'timestamp'); 创建超表,使用 create_hypertable 函数 将postgres标准表转化为 hypertablecre
阅读全文
摘要:调用父类的方法: super(student,self).age() #调用父类的方法
阅读全文
摘要:Django 对于命令的添加有一套规范,你可以为每个app 指定命令。通俗一点讲,比如在使用manage.py文件执行命令的时候,可以自定制自己的命令,来实现命令的扩充。 commands的创建 此时py文件名就是你的自定制命令,可以使用下面方式执行 Django的Command命令是要放在一个ap
阅读全文
摘要:Django获取应用下的所有models admin下实现遍历注册model
阅读全文