Verify that Django is on your path by trying the command $ django-admin --version.
通过尝试使用命令 $django-admin --version 来验证 Django 是否处于您的路径内。
The RequestContext is a django context with a few differences from the regular django.template.Context.
RequestContext是一个django上下文,与常规的django . template . Context有些许差异。
Django projects and applications.
Django项目和应用程序。
Download and install Django as follows.
按照以下步骤下载并安装django。
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应用程序中使用这个模板。
To view the admin tool, you can use the test server that comes with Django.
要查看这个管理工具,可以使用Django提供的测试服务器。
Django USES this method extensively when displaying objects in the Admin tool.
Django在Admin工具中显示对象时广泛地使用了这个方法。
One of the biggest selling points of Django is its well-polished admin interface.
Django的最大卖点之一是其一流的管理界面。
The model layer of a Django application is handled by Django's data-access layer.
Django应用程序的模型层由 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应用程序。
Effective caching can drastically enhance the performance of your Django applications.
高效的缓存能够极大地提升Django应用程序的性能。
Django templates are created with plain text embedded with {{variables}} and {% tags %}.
Django模板是利用{{variables}}和{%tags %}中嵌入的文本创建的。
Django provides a simple templating language designed for fast rendering and ease of use.
Django提供了一种模板语言,该语言被设计为能够快速呈现且易于使用。
Because of this, the Django team refers to Django as an MVT (model-view-template) framework.
由于这个原因,Django小组将Django称为一个MVT (model - view - template)框架。
Raul and his wife had two children of their own by this time, and Django resembled them, too.
现在劳尔和妻子已经有了两个孩子,Django跟他们很像。
Django is written entirely in Python, so to install Django, you first need to install Python.
Django完全是用Python编写的,因此在安装Django之前必须先安装Python。
For that, you need to deploy Django to a production-grade Web server, such as Apache or lighttpd.
因此,您需要将Django应用程序部署到生产级Web服务器,比如apache或lighttpd。
To install Django, issue the following command (Mac OS X or Linux): sudo python setup.py install.
要安装Django,发出以下命令(MacOSX或Linux):sudopythonsetup.pyinstall。
As long as your system has a version of Python from 2.3 to 2.6, you will be able to install Django.
只要您的系统安装了2.3至2.6版本的Python,就能够安装Django。
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特性之一就是它的自动管理界面。
Django offers comparable functionality to those web app frameworks, with ostensibly a more robust platform.
Django提供了与这些Web应用框架类似的功能,而且有一个更健壮的平台。
This will allow you to only use your Web server for Django requests and keep your media on a separate server.
这样您的Web服务器就专门用于Django请求,而媒体文件则放在另一个服务器上。
The first step in installing the official Django release is to get the tarball from the Django download page.
安装官方Django发布版的第一步是从Django下载页面获取tarball。
Dion demonstrated the simple poll application that we're all familiar with from the Django official tutorials.
Dion演示了一个简单的投票程序,那是我们都熟悉的来自Django官方教程的示例。
If the status object isn't empty, Django loops through each status object and displays the corresponding text.
如果status对象不为空,Django就会循环遍历每个status对象并显示相应的文本。
If the status object isn't empty, Django loops through each status object and displays the corresponding text.
如果status对象不为空,Django就会循环遍历每个status对象并显示相应的文本。
应用推荐