# Properties file with JDBC-related settings. ########## # HSQLDB # ########## #jdbc.driverClassName=org.hsqldb.jdbcDriver #jdbc.url=jdbc:hsqldb:hsql:... ...
分类:
数据库 时间:
2017-11-07 16:14:51
阅读次数:
197
As we mentioned last week, the Chinese government requires all company and individuals to buy social insurance, including foreigners. Why are foreigne ...
分类:
其他好文 时间:
2017-11-06 16:48:50
阅读次数:
320
1.项目名要小写 2.表中字段 AutoField() 表示整形字段,建表时不用写,当整形的数字范围不够你用的时候, 你可以用 BigAutoField()字段, 表示长整形 3.在视图函数中进行逻辑判断时:简单的逻辑要放在上面 4.在一张表中对多个其他表做FK,M2M时,就要使用 related_ ...
分类:
编程语言 时间:
2017-11-03 21:44:36
阅读次数:
204
class Building(models.Model): corporation = models.ForeignKey('company.Corporation', verbose_name=u'学校', related_name='buildings') number = models.Cha ...
分类:
其他好文 时间:
2017-11-03 19:09:30
阅读次数:
210
一、select_related查询优化select_related通过多表join关联查询,一次性获得所有数据,通过降低数据库查询次数来提升性能,但关联表不能太多,因为join操作本来就比较消耗性能。本文通过Djangodebugtoolbar工具来直观显示查询次数、查询语句,如果不会使用“Djangodebugtoolba..
分类:
其他好文 时间:
2017-10-31 10:57:39
阅读次数:
151
#====================================双下划线的跨表查询===============# 前提 此时 related_name=bookList 属性查询: # 查询linux这本书的出版社的地址? # linux_obj=models.Book.objects.... ...
分类:
编程语言 时间:
2017-10-30 21:21:22
阅读次数:
249
安装完vsftpd后,默认情况下,CentOS的防火墙是不开放ftp服务的,需要添加模块和开放21端口才能提供ftp访问。1.添加ip_conntrack_ftp 模块[root@hexuweb101 ~] vi /etc/sysconfig/iptables-config添加下面一行IPTABLE ...
分类:
其他好文 时间:
2017-10-26 17:45:46
阅读次数:
205
错误详情: auth.User.groups: (fields.E304) Reverse accessor for ‘User.groups’ clashes with reverse accessor for ‘User.groups’.HINT: Add or change a related ...
分类:
其他好文 时间:
2017-10-24 19:26:49
阅读次数:
3687
The Lucas numbers are closely related to the Fibonacci numbers and satisfy the same recursion relation Ln+1=Ln+Ln?1, but with starting values L1=1 and ...
分类:
其他好文 时间:
2017-10-19 09:23:59
阅读次数:
173
A short overview of ZAB. ...
分类:
其他好文 时间:
2017-10-18 14:10:46
阅读次数:
157