(1)默认校验规则(1)required:true 必输字段(2)remote:"check.php" 使用ajax方法调用check.php验证输入值(3)email:true 必须输入正确格式的电子邮件(4)url:true 必须输入正确格式的网址(5)date:true 必须输入正确格式的日期...
分类:
Web程序 时间:
2014-07-16 21:07:47
阅读次数:
220
最近上头交给我个任务,把WINDOWS平台下开发的网站,部署在LINUX环境上。把mysql安装好了,所有表单都导入没问题,然后代码都放在tomcat下的webapps文件夹下了,主页面可以正常显示,但有两个问题:用户登录或注册的时候总是提示:Connecting to 192.168.2.10.....
分类:
数据库 时间:
2014-07-16 20:20:17
阅读次数:
237
升级python版本后,运行yum
# yum -y install openssl
提示如下:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Pl...
分类:
编程语言 时间:
2014-07-16 14:04:47
阅读次数:
193
我们只需要在受控制的视图函数前面加上@login_required就可以了。Oss/views.py# -*- coding:utf-8 -*-from django.contrib.auth.decorators import login_requiredfrom django.http impo...
分类:
其他好文 时间:
2014-07-14 23:59:29
阅读次数:
643
上面已经实现了登录和注销功能,但是还没起作用。我们需要在每个视图函数里加上限制@login_required如下:from django.contrib.auth.decorators import login_required... ...@login_requireddef data_daka(...
分类:
其他好文 时间:
2014-07-14 23:43:51
阅读次数:
436
在用QSqlDatabase时遇到报错QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins是因为Qt不知道plugins的所在目录。
解决方法:
在用到数据库之前添加代码QCoreApplication::addLibraryPath("./plugins");
其中的...
分类:
移动开发 时间:
2014-07-14 17:20:41
阅读次数:
346
1). In /etc/my.ini, addskip-grant-tables2). mysql -u root -p (no password required)mysql> show databases;+--------------------+| Database |+----------...
分类:
Web程序 时间:
2014-07-13 20:58:19
阅读次数:
349
array(array(‘username’, ‘required’),array(‘username’, ‘length’, ‘min’=>3, ‘max’=>12),array(‘password’, ‘compare’, ‘compareAttribute’=>’password2′, ‘on...
分类:
其他好文 时间:
2014-07-13 11:57:16
阅读次数:
431
一、问题
在安装opencms是会出现如下错误:
MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB).
Please note that it will not be possible for OpenCms to handle files bigger than this value in ...
分类:
其他好文 时间:
2014-07-12 22:58:44
阅读次数:
353
点击进行安装,将会弹出错误提示是:Cannotcompletetheinstallbecauseoneormorerequireditemscouldnotbefound.Softwarebeinginstalled:AndroidDevelopmentTools16.0.1.v2011121502...
分类:
其他好文 时间:
2014-07-12 15:48:14
阅读次数:
262