Django projects and applications.
Django项目和应用程序。
He chose Django because of two key factors.
因为两个关键的因素,他选择了Django。
Download and install Django as follows.
按照以下步骤下载并安装django。
Next, you need to create a new Django project.
接下来,需要创建一个新的Django项目。
Setting up a basic Django development environment.
设置基本的Django开发环境。
The site was built on top of the Django framework.
这个站点是用Django框架搭建的。
Deploying Django applications to Apache with mod_python.
将Django应用程序部署到运行mod_python的apache。
The admin tool is an application that comes with Django.
管理工具是Django提供的一个应用程序。
First, we will check that Django is installed correctly.
首先,我们检查Django是否安装正常。
Remember that this is the Django superuser, not your system's.
记住,这是Django的超级用户,而不是系统的超级用户。
If that is the case, how does Django know where to find them?
但是如果真这样做的话,Django如何找到它们呢?
Listing 6 is an example of what a Django template would look like.
清单6是一个示例Django模板。
You now have a working Django development environment up and running.
现在,您已经有一个正在运行的Django开发环境。
Listing 7 shows how this template would be used in a Django application.
清单7显示了如何在Django应用程序中使用这个模板。
Pinax: Find information about this platform that is built on top of Django.
Pinax:了解这一构建在Django之上的平台的一些信息。
Django USES this method extensively when displaying objects in the Admin tool.
Django在Admin工具中显示对象时广泛地使用了这个方法。
To view the admin tool, you can use the test server that comes with Django.
要查看这个管理工具,可以使用Django提供的测试服务器。
One of the biggest selling points of Django is its well-polished admin interface.
Django 的最大卖点之一是其一流的管理界面。
To begin a Django project, use the django-admin startproject command, like so
要启动 Django 项,请使用 django-admin startproject 命令,如下所示
Your arsenal should contain Python, Django, jQuery, and the python-twitter wrapper.
而您的工具箱中则应该包含 Python、Django、jQuery 和 python-twitter 包装程序。
We will cover deploying Django applications for production use later in this article.
我们将在本文的后面讨论部署用于生产的Django应用程序。
The model layer of a Django application is handled by Django's data-access layer.
Django 应用程序的模型层由 Django 的数据访问层处理。
Verify that Django is on your path by trying the command $ django-admin --version.
通过尝试使用命令 $ django-admin --version 来验证 Django 是否处于您的路径内。
This would generally be stored in a models.py file in a Django application's directory.
它通常存储在Django应用程序目录下的models . py文件中。
Django templates are created with plain text embedded with {{variables}} and {% tags %}.
Django模板是利用{{variables}}和{% tags %}中嵌入的文本创建的。
However, the Django configuration system allows for maximum control and flexibility.
然而,Django配置系统可以进行最大限度的控制和灵活性。
Django provides a simple templating language designed for fast rendering and ease of use.
Django提供了一种模板语言,该语言被设计为能够快速呈现且易于使用。
Effective caching can drastically enhance the performance of your Django applications.
高效的缓存能够极大地提升Django应用程序的性能。
To extract this file, simply use the following command: tar XVF Django-1.0.2-final.tar.
使用以下命令解压缩这个文件:tar xvf Django - 1.0.2 - final . tar。
Because of this, the Django team refers to Django as an MVT (model-view-template) framework.
由于这个原因,Django小组将Django称为一个MVT (model - view - template)框架。