执行如下命令应该可以解决
brew install openssl
pip uninstall pycurl
export PYCURL_SSL_LIBRARY=nss 或者 export PYCURL_SSL_LIBRARY=openssl
pip install pycurl
首先先设置网卡优先级
然后获取网卡接口
$ netstat -rt
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.0.1 UGSc en9
default 10.16.135.1 UGScI en11
1 198.18.0.1 UGSc utun3
首先先设置网卡优先级
拖动网卡顺序然后获取网卡接口
$ netstat -rt
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.0.1 UGSc en9
default 10.16.135.1 UGScI en11
1 198.18.0.1 UGSc utun3
Django queryset 通过 is_cooperated_changed 字段的日期来分组记数,记住要加一个order_by 不然会没有效果
models.Anchor.objects.annotate(
anchors_date=TruncDate('is_cooperated_changed'),
).values('anchors_date').order_by('anchors_date'
Django queryset 通过 is_cooperated_changed 字段的日期来分组记数,记住要加一个order_by 不然会没有效果
models.Anchor.objects.annotate(
anchors_date=TruncDate('is_cooperated_changed'),
).values('anchors_date').order_by('anchors_date'