木有
发布时间:2012-12-21 10:14:12
此blog意在记录解决学习开发中遇到的问题,您看到这篇blog可能意味着您也遇见类似问题,如果这篇文章对您没有帮助,能否请您在留言中说下您的问题,不胜感激。TypeError at /testnetwork/ pop expected at least 1 arguments, got 0 Request Method: GET Request URL: http://10.2.8.111:9999/testnetwork/ Django Ve......【阅读全文】
发布时间:2012-12-19 14:30:44
在项目中需要重数据库中读取数据然后生成forms.TypedChoiceField在实际过程中是提交数据库后,刷新网页,forms.TypedChoiceField中的内容不会发生改变,需要重启django才会生效。解决方法是initial。在views里面重新为choice赋值 如下例 max_number = forms.ChoiceField(widget = forms.Select(), choices = ([('1','1'), ('2','2'),('3','3'), ]), initial='3', required = Tr......【阅读全文】
发布时间:2012-12-13 15:12:23
RuntimeError at /network/ips You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 10.2.8.111:9999/network/ips/ (note the trailing slash), or set APPEND_SLASH......【阅读全文】
发布时间:2012-12-10 14:51:34
nginx + uwsgi + django 部署环境: os UBUNTU12 nginx 1.2.4 python 2.7 django 1.4 uwsgi 1.4.21 安装Nginx uwsgi pip install u......【阅读全文】