自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 The Django template language 阅读批注

The Django template language About this document This document explains the language syntax of the Django template system. If you’re looking for a more technical perspective on how it works a...

2014-03-11 15:27:00 143

转载 Django Form Media 阅读笔记

---恢复内容开始--- Form Media 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 may ...

2014-03-07 16:55:00 208

转载 读 Working with forms 一些心得

Working with forms About this document This document provides an introduction to Django’s form handling features. For a more detailed look at specific areas of the forms API, seeThe Forms AP...

2014-03-07 14:37:00 193

转载 解决AngularJS和Django模板标签冲突问题

Django和AngularJS在模板中使用同样的符号来引用变量,例如 {{variable_name}}。 有两种解决办法,各有利弊。一个修改AngularJS模板语法,另一个使用Django的标签。 1. 修改Django: 使用verbatim标签,verbatim标签在Django 1.5以后被加入Django。缺点是使用起来比较啰嗦。 2. 更简洁的解决方案...

2014-03-06 16:19:00 111

转载 Tutorial: 结合使用AngularJS和Django

好吧,我承认自己很懒,时间又不够用。 翻译的几个文章都是虎头蛇尾,但我保证这次肯定不太监。 关键的单词不翻译,实在觉得翻译成汉语很别扭,括号里是参考翻译。 有问题和建议尽管提出来,我会改进完善。 Tutorial: Using AngularJS with Django 原文:http://glynjackson.org/weblog/entry/django-angul...

2014-03-06 15:48:00 191

转载 Working with forms

翻译 Django文档 Version 1.5 https://docs.djangoproject.com/en/1.5/topics/forms Working with forms 关于此文章: 此文介绍了Django form。欲进一步了解forms API,参考 The Forms API, Form fields 以及 Form and field val...

2014-03-06 10:12:00 70

转载 Django URL 命名空间

https://docs.djangoproject.com/en/1.5/topics/http/urls/#introduction 译文: URL 命名空间 简介: 当你需要部署一个应用的多个实例时,把这多个实例区别开来就变得很有意义。当使用named URL patterns时尤其重要,一个单例应用(application)会分享被命名的URLs。命名空间提供了区分命名U...

2014-03-02 21:31:00 97

转载 django在对原系统影响最小的情况下,对字段增加过滤器(用于字段处理,如加密、解密)...

1 class MyModel(models.Model): 2 _foo = models.CharField(max_length = 20, db_column='foo') 3 bar = models.CharField(max_length = 20) 4 5 def get_foo(self): 6 if self.bar: ...

2012-04-05 14:02:00 70

转载 【转】python __file__ 与argv[0]

原文地址:http://www.4ucode.com/Study/Topic/1477794 python __file__ 与argv[0] 在python下,获取当前执行主脚本的方法有两个:sys.argv[0]和__file__。 sys.argv[0] 获取主执行文件路径的最佳方法是用sys.argv[0],它可能是一个相对路径,所以再取一下abspath是保险的做法,像...

2012-02-20 17:24:00 69

空空如也

空空如也

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

TA关注的人

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