浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月7日

摘要: 永无止境地追求着 » urllib2 解析urllib2 解析2010年11月20日 | 分类: 兴趣所在 | 标签: python概述urllib2中的核心类: Request :一个具体的url请求,包含了请求的所有信息,不仅仅试用于http协议 OpenerDirector:与BaseHandler组合,通过组合不同得handler处理不同的请求 BaseHandler :参与完成请求处... 阅读全文
posted @ 2012-04-07 23:07 lexus 阅读(273) 评论(0) 推荐(0)

摘要: An Introduction To The SQLite C/C++ InterfaceAn Introduction To The SQLite C/C++ InterfaceThis article provides an overview and roadmap to the C/C++ interface to SQLite.Early versions of SQLite were v... 阅读全文
posted @ 2012-04-07 17:04 lexus 阅读(206) 评论(0) 推荐(0)

摘要: 成为跨平台的C++程序员 - C++ - language - ITeye论坛最近看到javaeye 上的坛友,想达到 “有勇气说自己会c++,标准c++,而且能跨平台” 这样的目标。身边有不少想学习C++的朋友,就这个问题,说说我的理解跨平台的C++程序员也曾是我的目标,不过多年来,我只有在windows和 unix 下的开发经验,所我的经验来自于这两大平台。带具体任务进行学习如果没有具体的任务... 阅读全文
posted @ 2012-04-07 16:59 lexus 阅读(306) 评论(0) 推荐(0)

摘要: [sqllite]c语言操作sqlite一: 连接sqlite数据库2009-05-15 16:24首先,你需要下载sqlite的源代码 http://www.sqlite.org/sqlite-3.6.6.2.tar.gz #tar xf sqlite-3.6.6.2.tar.gz #cd sqlite-3.6.6.2.tar.gz #./configure prefix=/usr #mak... 阅读全文
posted @ 2012-04-07 16:53 lexus 阅读(779) 评论(0) 推荐(0)

摘要: django: BooleanField, how to set the default value to true? - Stack Overflow down vote acceptedIf you're just using a vanilla form (not a ModelForm), you can set a Field initial value (http://docs.dja... 阅读全文
posted @ 2012-04-07 11:59 lexus 阅读(623) 评论(0) 推荐(0)

摘要: Django tips: the difference between 'blank' and 'null'mothers_maiden_name = models.CharField(maxlength=50, null=True) 阅读全文
posted @ 2012-04-07 11:02 lexus 阅读(189) 评论(0) 推荐(0)

摘要: Installation — South v0.7 documentationInstallation¶South’s current release is 0.7.4.There are a few different ways to install South:Using easy_install (or pip), which is recommended if you want stabl... 阅读全文
posted @ 2012-04-07 10:16 lexus 阅读(193) 评论(0) 推荐(0)

摘要: django 单独使用数据模型 - 小小的世界django 单独使用数据模型最近为了在应用中也共用modle,找到django下能使用的办法,把环境变量设为DJANGO_SETTINGS_MODULE=settings就好了import os,sysos.environ['DJANGO_SETTINGS_MODULE'] = 'settings'from django.conf import se... 阅读全文
posted @ 2012-04-07 09:20 lexus 阅读(211) 评论(0) 推荐(0)

摘要: django 单独使用数据模型 - 小小的世界django 单独使用数据模型最近为了在应用中也共用modle,找到django下能使用的办法,把环境变量设为DJANGO_SETTINGS_MODULE=settings就好了import os,sysos.environ['DJANGO_SETTINGS_MODULE'] = 'settings'from django.conf import se... 阅读全文
posted @ 2012-04-07 09:20 lexus 阅读(212) 评论(0) 推荐(0)

摘要: 用 django south 做 database migration - Oceanic / 人生海海用 Django South 做 Database MigrationNov 2nd, 2009south, 一個幫 django 做 database migration 的 app, 真的是超方便的。 以前在 itszero 傳授我 RoR 的時候, 曾經見識過 RoR 的 database... 阅读全文
posted @ 2012-04-07 09:19 lexus 阅读(303) 评论(0) 推荐(0)

摘要: 用 django south 做 database migration - Oceanic / 人生海海用 Django South 做 Database MigrationNov 2nd, 2009south, 一個幫 django 做 database migration 的 app, 真的是超方便的。 以前在 itszero 傳授我 RoR 的時候, 曾經見識過 RoR 的 database... 阅读全文
posted @ 2012-04-07 09:19 lexus 阅读(200) 评论(0) 推荐(0)

摘要: django 的 ORM 单独使用 - vkill'blog - “技术本身没有太多价值,掌握了新的思考方式才是真的收获”django 的 ORM 单独使用 Large | Medium | Small 08:28 , vkill到底啥时候使用呢,比如说我们开发网站时要写入基础数据这些的时候,用sql ? 太土了,还有关联表的数据sql可就麻烦了好了,上代码1、不依赖 django projec... 阅读全文
posted @ 2012-04-07 09:15 lexus 阅读(579) 评论(1) 推荐(0)

摘要: |-- dbquery| |-- __init__.py| |-- models.py| |-- tests.py| `-- views.py|-- __init__.py|-- manage.py|-- settings.py|-- standalone.py`-- urls.pystandalone.py是我写的,其它都是按django教程生成的#!/usr/bin/env python#en... 阅读全文
posted @ 2012-04-07 09:07 lexus 阅读(481) 评论(0) 推荐(0)

摘要: 如何独立运行 django脚本(需要settings时)_贪婪的小猪_百度空间如何独立运行 django脚本(需要settings时)2010-01-21 14:41http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/ from django.core.management import setup_enviro... 阅读全文
posted @ 2012-04-07 08:03 lexus 阅读(316) 评论(0) 推荐(0)

摘要: Django application as a stand-alone desktop application at finally{}all will be well finallyDjango application as a stand-alone desktop applicationwith 2 commentsThere are few options available to pac... 阅读全文
posted @ 2012-04-07 08:01 lexus 阅读(407) 评论(0) 推荐(0)

摘要: Use Django ORM as standalone « Pascal's Blog – A brain backupUse Django ORM as standaloneRecently I had to write a tools which acts on data stored in a database managed by Django. As I didn't want to ... 阅读全文
posted @ 2012-04-07 07:59 lexus 阅读(317) 评论(0) 推荐(0)

摘要: django-standalone 0.4 : Python Package Indexdjango-standalone 0.4use the Django ORM with standalone scriptsDownloads ↓-*- markdown -*- Simple Standalone Scripts Using the Django ORM =================... 阅读全文
posted @ 2012-04-07 07:58 lexus 阅读(191) 评论(0) 推荐(0)