文章列表
 
您正在查看 "Django" 分类下的文章

2008年07月21日 星期一 下午 1:59

from django import template

template.add_to_builtins(“myproject.templatetags.site_media”)

如果你有一个想让它在每个模板中都有效的自定义模板标签,将上面的代码片段放在模板标签文件的顶部,在Django启动的时候就会把指定的标签预先载入到内置模块中取了。

 
2007年03月04日 星期日 下午 7:11
<< 前一个步骤

安装模型

The first step in installing our models is to tell Django which database we're using, and that we want the models we just created to be installed. To do this, open up the settings.py file in your project directory, and change these settings.

DATABASE_ENGINE sho

 
2007年03月04日 星期日 下午 6:41
原文作者James Bennett
本文翻译Richard Zhu

作为一个Web开发人员并非总是那么充满激情的。有很多事情你需要一次又一次的重做:
编写代码去和数据库进行会话,编写代码去处理页面模板,编写一个管理的界面......
迟早有一天你会开始希望有人能够出现并把所有重复的代码包装在一个精巧的、完整的、可复用的包里面,不是吗
 
2007年02月26日 星期一 下午 1:03

WeiZhong翻译的Django文档

http://www.woodpecker.org.cn/obp/django/django-faq/TableOfContents.html

博客园-福娃的学习记录

http://www.cnblogs.com/maplye/category/69242.html

DjangoProject上的Model文档

http:/

 
2007年02月18日 星期日 下午 6:46
本文为翻译内容,原文请查看http://www.mercurytide.com/

介绍Django
Django是一个开源的Web应用程序框架,引用创作者的话来说就是:“鼓励快速开发和干净、实效的设计”。它由Python编写,并提供各种组件以创 建高质量的Web应用程序,包括一个ORM(object-relational mapper)框架、一个支持全部特性的模板系统、URL分发器、会话管理、安全认证和其他更多的东西。

一个对框架有价值的衡量
 
2007年01月21日 星期日 下午 1:24

As a response to the Top 30 Ruby on Rails Tutorials, I’ve compiled a list of the top 30 Django tutorials and articles. These links are in addition to the great documentation on the Django project site.

For those who don’t know, Django is a

 
2007年01月21日 星期日 下午 12:44

翻译:merlin

How to use Django with FastCGI

尽管目前推荐的运行Django的方法是使用Apache加上mod_python,但是很多人使用了shared hosting,如此只能用FastCGI。某些情形下,FastCGI拥有更好的安全性——并且,可能比mod_python具有更好的性能。

 
2007年01月20日 星期六 上午 11:12

Django settings 文件包含你的 Django 安装的所有配置信息.本文档解释了 settings 如何工作及共有哪些选项可用.

基本设置

一个 settings 文件就是一个拥有一些模块级变量的 Python 模块.

下面是几个 settings 的例子:

DEBUG = FalseDEFAULT_FROM_EMAIL = 'webmaster@example.com'TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')

由于一个 settings 文件就是一个 Python 模块, 所以必须遵

 
2007年01月20日 星期六 上午 9:56
转自马踏飞燕
另一篇安装向导:http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/
先要准备好相关的软件:
  • Python 2.4.3
  • PIL for py2.4
  • Mysqldb for py2.4
  • Django 0.95
  • Apache 2.0.x
  • mod_python 3.2.5 for py2.4

以上软件都可以在网上下载。对应的网站如下:

 
 
   
 
 
文章存档
 
     
 
最新文章评论
  

DataKeys
 

《赢在中国》 2006第一赛季、2007第二赛季、2008第三赛季已经全部下载完毕,另有《超
 

有些熟悉。。。
 

[表情]
 

可以
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu