- 博客(34)
- 收藏
- 关注

原创 python 内建函数,一点一点记
hasattr(object, name)说明:判断对象object是否包含名为name的特性(hasattr是通过调用getattr(ojbect, name)是否抛出异常来实现的)。参数object:对象。参数name:特性名称。示例:
2014-10-07 22:06:26
752
转载 JavaScript专题(二):深入理解iframe
深入理解玩转 iframehttp://www.cnblogs.com/fangjins/archive/2012/08/19/2645631.html
2016-06-15 16:40:12
632
转载 phpstorm + xampp 配置
传送门:http://www.cnblogs.com/lishiyun19/p/4470086.html
2016-03-24 16:45:25
1058
转载 Jenkins界面Jelly入门
一,Jelly的基本用法1.1 Jelly页面的路径假设你建立了一个java类,路径为src/main/java/org/myOrg/MyAction.java则增加Jelly文件需要在resources文件夹中建立与类同名的目录:src/main/resources/org/myOrg/MyAction/并且在其中增加文件config.jelly,路径如下:src
2014-10-28 11:05:50
6220
原创 ubuntu上安装python-ldap失败解决办法
http://www.thefourtheye.in/2013/04/installing-python-ldap-in-ubuntu.html
2014-10-20 14:34:45
3369
原创 如何让新工程在pycharm里快速运行
有时新打开一个工程,但是pycharm却不将其作为一个django 工程DJANGO_SETTINGS_MODULE
2014-10-20 10:38:57
5842
原创 在 __init__.py 里写代码的若干理由
为什么要在 __init__.py 里写代码,以及在 init 脚本里面写什么样的代码。这是非常 pythonic 的习惯。
2014-09-29 18:23:38
14196
翻译 Django 安全(未完成)
原文:https://docs.djangoproject.com/en/1.6/topics/security/#cross-site-request-forgery-csrf-protection这pianSecurity in DjangoThis document is an overview of Django’s security features. It
2014-09-16 16:06:25
2065
原创 Django Widgets(部件)
Django book 里有这样一段话,“Field类表现* 校验逻辑* ,而部件表现* 显示逻辑* ”。那么,部件是如何表现“显示逻辑”的,又该如何订制自己的部件。
2014-06-02 21:32:02
13596
1
翻译 Django’s cache framework 缓存框架
Django’s cache frameworkA fundamental trade-off in dynamic Web sites is, well, they’re dynamic. Each time a user requests a page, the Web server makes all sorts of calculations – from database que
2014-05-18 00:07:30
2525
翻译 The Django template language 阅读笔记
yuan'wThe Django template languageAbout this documentThis document explains the language syntax of the Django template system. If you’re looking for a more technical perspective on how it
2014-05-17 23:15:16
2345
翻译 Form Assets (the Media class) 阅读笔记
Form Assets (the Media class)Rendering an attractive and easy-to-use Web form requires more than just HTML - it also requires CSS stylesheets, and if you want to use fancy “Web2.0” widgets, you ma
2014-05-17 06:02:05
1316
翻译 Formsets 阅读笔记
Formsetsclass django.forms.formsets.BaseFormSetA formset is a layer of abstraction to work with multiple forms on the same page. It can be best compared to a data grid. Let’s say you have th
2014-05-14 18:17:00
2090
翻译 Django forms 阅读笔记
Working with formsAbout this documentThis document provides an introduction to Django’s form handling features. For a more detailed look at specific areas of the forms API, see The Forms API
2014-05-12 11:29:10
1639
翻译 Django Managers 阅读批注(记忆的线索)
原文:https://docs.djangoproject.com/en/1.6/topics/db/managers/ Managersclass ManagerA Manager is the interface through which database query operations are provided to Django models. At lea
2014-05-10 17:27:34
1087
翻译 Using django Models 批注
原文:https://docs.djangoproject.com/en/1.6/topics/db/models/
2014-05-09 16:39:45
2970
原创 安装django-cms报错,ImproperlyConfigured: LANGUAGE_CODE "en-us" must have a matching entry in LANGUAG解决办法
ImproperlyConfigured: LANGUAGE_CODE "en-us" must have a matching entry in LANGUAGES[17/Apr/2014 17:48:10] "GET /zh-cn/ HTTP/1.1" 500 59这个is
2014-04-17 17:50:19
4403
翻译 使用国内镜像无障碍加速pip安装
pipy国内镜像目前有: http://pypi.douban.com/ 豆瓣http://pypi.hustunique.com/ 华中理工大学http://pypi.sdutlinux.org/ 山东理工大学http://pypi.mirrors.ustc.edu.cn/ 中国科学技术大学 对于pip这种在线安装的方式
2014-04-16 23:34:10
4297
原创 在Mac oxs 10.9 Mavericks上,给Apache2安装 mod_wsgi 遇到的问题及解决方案
想在Mac osx自带的apache上配置django环境,需要安装 mod_wsgi。但是遇到一系列问题。
2014-04-11 20:25:58
4195
翻译 Pagination 记忆线索
原文:https://docs.djangoproject.com/en/1.6/topics/pagination/ PaginationDjango provides a few classes that help you manage paginated data – that is, data that’s split across several pages, with
2014-04-11 11:45:33
984
翻译 Sending email 记忆线索
Sending emailAlthough Python makes sending email relatively easy via the smtplib module, Django provides a couple of light wrappers over it. These wrappers are provided to make sending email ext
2014-04-11 11:09:31
2690
翻译 Internationalization and localization 记忆线索
Internationalization and localization¶OverviewThe goal of internationalization and localization is to allow a single Web application to offer its content in languages and formats tailore
2014-04-09 16:30:09
1062
翻译 Cryptographic signing 记忆线索
Conditional View ProcessingHTTP clients can send a number of headers to tell the server about copies of a resource that they have already seen. This is commonly used when retrieving a Web page (us
2014-04-09 16:02:49
1174
翻译 Password management in Django 密码管理,记忆线索
Password management in DjangoPassword management is something that should generally not be reinvented unnecessarily, and Django endeavors to provide a secure and flexible set of tools for managing
2014-04-03 16:56:16
1207
翻译 Customizing authentication in Django (定制DJango权限功能)记忆的线索
原文:https://docs.djangoproject.com/en/1.6/topics/auth/customizing/Customizing authentication in DjangoThe authentication that comes with Django is good enough for most common cases, but you may
2014-04-02 21:46:03
3395
转载 Python doc v2.7.6 ------ 5.2.10.1. Generator-iterator methods
This subsection describes the methods of a generator iterator. They can be used to control the execution of a generator function.Note that calling any of the generator methods below when the gener
2014-03-29 11:40:56
840
翻译 Using the Django authentication system (使用Django默认的权限系统) 阅读批注
这文章主要是给我的记忆提供索引的,请大家多提宝贵意见,共同进步。原文: https://docs.djangoproject.com/en/1.6/topics/auth/default/原文目录:ContentsUsing the Django authentication systemUser objectsCreating user
2014-03-21 19:19:00
3598
翻译 User authentication in Django 阅读批注
原文:https://docs.djangoproject.com/en/1.6/topics/auth/User authentication in DjangoDjango comes with a user authentication system. It handles user accounts, groups, permissions and cookie
2014-03-12 16:15:59
1085
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人