码迷,mamicode.com
首页 >  
搜索关键字:django q    ( 16838个结果
Django----模板
为了将html页面和python代码分离开来,有必要介绍一下模板的作用,Django中自带许多模板。 下面一个html模板文件: Ordering notice Ordering notice Dear {{ person_name }}, Thanks for placing an order from {{ company }}. It's scheduled to ship ...
分类:其他好文   时间:2014-11-09 16:41:30    阅读次数:115
Django Web开发指南
来源:http://www.cnblogs.com/bluescorpio/archive/2012/04/28/2475804.html第一部分 入门第一章 Django Python实战1.3 Python基础注释:Python的注释是用井字符(#)表示的。变量和赋值:Python是动态类型的语...
分类:Web程序   时间:2014-11-09 09:50:58    阅读次数:265
Django+MySQLDB配置
Django+MySQLDB配置来源: ChinaUnix博客 日期: 2009.07.09 16:25 (共有条评论)我要评论 一、安装Mysql(1)下载mysql-5.0.83(2)运行如下命令shell> groupadd mysqlshell> useradd -g mys...
分类:数据库   时间:2014-11-09 08:35:11    阅读次数:190
django 后台显示字段修改
1.app名称本来估计能找到类似Mete中verbose_name_plural属性去更改app显示名称的,可以只找到一个app_label。但是由于django源码中是这样写的:app_dict[app_label] = {'name': app_label.title(),'app_url': ...
分类:其他好文   时间:2014-11-09 06:14:51    阅读次数:670
第一个project,累哭的第一个app
想学web开发,又还是想继续python,去网上一搜,可喜的是python做后台开发是很厉害的,前端当然是:html和css,javascript啦。。。。这三者都有点 文本类型的感觉,经常看看应该就ok在找工作的网上看了看,感觉django这个架构不错啊,好的就确定学这个了,学习资料就是官方的do...
分类:移动开发   时间:2014-11-08 23:24:12    阅读次数:400
DJANTO之FORM
文档很仔细,但熟悉要慢慢来~~from django.shortcuts import renderfrom contact.forms import ContactFormfrom django.http import HttpResponseRedirectfrom django.core.ma...
分类:其他好文   时间:2014-11-08 19:27:29    阅读次数:139
向着DJANGO奔跑!
这个项目明天上半年要弄好,就牛X了哈哈。平台化运维。PYTHON,SVN,SALTSTACK,.....一锅端~~:)from django.contrib import admin# Register your models here.from books.models import Publis...
分类:其他好文   时间:2014-11-08 13:14:01    阅读次数:329
django源码解析之 BooleanField (三)
1 def __init__(self, *args, **kwargs):2 kwargs['blank'] = True3 if 'default' not in kwargs and not kwargs.get('null'):4 ...
分类:其他好文   时间:2014-11-08 07:05:23    阅读次数:209
django源码解析之BigIntegerField (一)
要分析django的源码,来更深入的学习django,是一个不错的方法,可惜需要大量的时间。所以,能分析多少就是多少吧。本次源码分析以1.4.16为基础。用sublime 打开下载的源码,使用 Find in Folder,查找BigIntegerField在其中可以看到这样的代码:1 1005 ....
分类:其他好文   时间:2014-11-08 07:03:09    阅读次数:215
django源码解析之 BooleanField (二)
class BooleanField(Field): empty_strings_allowed = False default_error_messages = { 'invalid': _(u"'%s' value must be either True or Fals...
分类:其他好文   时间:2014-11-08 07:02:30    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!