摘要:
一般是版本不兼容 Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/swt/events/ShellListener has been compiled by a more recent ve 阅读全文
摘要:
如果是 brew 安装卸载 brew uninstall java 手动安装卸载 sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencesPanes/JavaCon 阅读全文
摘要:
有两大用处 FilteredRelation类允许为查询集增加一个ON从句 可以在多个join中语句直接引用变量 from django.db.models import FilteredRelation, Q result_1 = Restaurant.objects.annotate(pizza 阅读全文
摘要:
直接说答案 <= Django 1.6 只能在使用代码过滤 somethings = Foo.objects.filter(author="author").prefetch_related("bar_set") for a in somethings: somebars = [p for p in 阅读全文