Django projects and applications.
Django项目和应用程序。
Download and install Django as follows.
按照以下步骤下载并安装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是否安装正常。
Listing 7 shows how this template would be used in a Django application.
清单7显示了如何在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的最大卖点之一是其一流的管理界面。
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 是否处于您的路径内。
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.
使用以下命令解压缩这个文件:tarxvfDjango - 1.0.2 - final . tar。
Raul and his wife had two children of their own by this time, and Django resembled them, too.
现在劳尔和妻子已经有了两个孩子,Django跟他们很像。
Because of this, the Django team refers to Django as an MVT (model-view-template) framework.
由于这个原因,Django小组将Django称为一个MVT (model - view - template)框架。
Django is written entirely in Python, so to install Django, you first need to install Python.
Django完全是用Python编写的,因此在安装Django之前必须先安装Python。
Models in Django can be seen as descriptions of the database table schemas, represented in Python code.
Django中的模型可以看作是对用Python代码表示的数据库表架构的描述。
One of the most interesting and talked-about features of Django is its automatic administrative interface.
最有趣、最经常被提起的Django特性之一就是它的自动管理界面。
Views can be stored anywhere in a Django application, but are usually stored in a file named views.py.
可以将视图储存在Django应用程序中的任意位置,但它们通常储存在名为views . py的文件中。
Django offers comparable functionality to those web app frameworks, with ostensibly a more robust platform.
Django提供了与这些Web应用框架类似的功能,而且有一个更健壮的平台。
The RequestContext is a django context with a few differences from the regular django.template.Context.
RequestContext是一个django上下文,与常规的django . template . Context有些许差异。
Django USES the model to generate and execute SQL statements in the database, which in turn return a result.
Django使用模型在数据库中生成和执行sql语句,反过来,这些sql语句会返回一个结果。
That's all there is to setting up Apache and mod_python for deploying Django to a production Web server.
现在已经完全设置好apache和mod_python,您可以将Django应用程序部署到生产Web服务器了。
Dion demonstrated the simple poll application that we're all familiar with from the Django official tutorials.
Dion演示了一个简单的投票程序,那是我们都熟悉的来自Django官方教程的示例。
Dion demonstrated the simple poll application that we're all familiar with from the Django official tutorials.
Dion演示了一个简单的投票程序,那是我们都熟悉的来自Django官方教程的示例。
应用推荐