自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

没事写写博客 的专栏

关于Django的技术文章

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

原创 django 模块功能

1.   django.utils.six非常有用的处理版本的模块

2014-10-07 22:29:11 1547

原创 python 内建函数,一点一点记

hasattr(object, name)说明:判断对象object是否包含名为name的特性(hasattr是通过调用getattr(ojbect, name)是否抛出异常来实现的)。参数object:对象。参数name:特性名称。示例:

2014-10-07 22:06:26 688

转载 JavaScript专题(二):深入理解iframe

深入理解玩转 iframehttp://www.cnblogs.com/fangjins/archive/2012/08/19/2645631.html

2016-06-15 16:40:12 578

转载 phpstorm + xampp 配置

传送门:http://www.cnblogs.com/lishiyun19/p/4470086.html

2016-03-24 16:45:25 1002

原创 js 知识

需要了解及掌握的js前端知识

2014-12-25 18:50:21 457

原创 Python 命名空间

Python namespaces    A nam

2014-11-23 09:36:16 519

转载 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 5918

原创 ubuntu上安装python-ldap失败解决办法

http://www.thefourtheye.in/2013/04/installing-python-ldap-in-ubuntu.html

2014-10-20 14:34:45 3303

原创 如何让新工程在pycharm里快速运行

有时新打开一个工程,但是pycharm却不将其作为一个django 工程DJANGO_SETTINGS_MODULE

2014-10-20 10:38:57 5759

原创 在 __init__.py 里写代码的若干理由

为什么要在 __init__.py 里写代码,以及在 init 脚本里面写什么样的代码。这是非常 pythonic 的习惯。

2014-09-29 18:23:38 14093

翻译 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 2003

原创 Django Widgets(部件)

Django book 里有这样一段话,“Field类表现* 校验逻辑* ,而部件表现* 显示逻辑* ”。那么,部件是如何表现“显示逻辑”的,又该如何订制自己的部件。

2014-06-02 21:32:02 13468 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 2459

翻译 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 2261

翻译 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 1245

翻译 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 2025

翻译 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 1579

翻译 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 1051

翻译 Using django Models 批注

原文:https://docs.djangoproject.com/en/1.6/topics/db/models/

2014-05-09 16:39:45 2895

原创 安装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 4337

原创 通过示范在 CSS 的帮助下如何把单一的 HTML 文件转换成两张展现效果完全不同的网页

http://www.csszengarden.com

2014-04-17 16:10:19 642

翻译 使用国内镜像无障碍加速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 4221

原创 在Mac osx v10.9上安装mysql-python

想在新买的Mac机上安装mysql-python驱动,遇到l

2014-04-15 20:54:21 1777

原创 在Pycharm里创建虚拟开发环境

在python的世界里,pip, virtualenv 都是好d

2014-04-13 21:30:16 18985 2

原创 在Mac oxs 10.9 Mavericks上,给Apache2安装 mod_wsgi 遇到的问题及解决方案

想在Mac osx自带的apache上配置django环境,需要安装 mod_wsgi。但是遇到一系列问题。

2014-04-11 20:25:58 4108

翻译 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 918

翻译 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 2450

翻译 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 996

翻译 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 1136

翻译 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 1136

翻译 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 3341

转载 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 809

翻译 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 3528

翻译 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 1050

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除