django

网络  姜戈; 迪亚戈; 框架; 冯敬文; 模板

#双语例句回顶部

  • As we have seen, the Django framework conveniently includes a development server, which is ideal for debugging and testing your Django application.
    我们在前面已经看到,Django框架还包含了一个开发服务器,用它调试和测试Django应用程序非常方便。
  • Next, you need to create a new Django project.
    接下来,需要创建一个新的Django项目。
  • You now have a working Django development environment up and running.
    现在,您已经有一个正在运行的Django开发环境。
  • That's all there is to setting up Apache and mod_python for deploying Django to a production Web server.
    现在已经完全设置好Apache和modpython,您可以将Django应用程序部署到生产Web服务器了。
  • We will now look at how to deploy to a server running Apache and mod_python.
    我们现在看看如何将Django应用程序部署到运行Apache和modpython的服务器。
  • Django uses the model to generate and execute SQL statements in the database, which in turn return a result.
    Django使用模型在数据库中生成和执行SQL语句,反过来,这些SQL语句会返回一个结果。
  • Remember that this is the Django superuser, not your system's.
    记住,这是Django的超级用户,而不是系统的超级用户。
  • The admin tool is an application that comes with Django.
    管理工具是Django提供的一个应用程序。
  • The Django template language has been designed with limited functional capabilities.
    Django模板语言已经被设计为只能实现有限的功能。
  • Models in Django can be seen as descriptions of the database table schemas, represented in Python code.
    Django中的模型可以看作是对用Python代码表示的数据库表架构的描述。
  • The Django team has not chosen a JavaScript library to include with their framework by default, but has discussed the possibility.
    Django团队没有选择使用一个JavaScript库来默认地包含自己的框架,但是他们已经对这种可能性展开了讨论。
  • Django uses this method extensively when displaying objects in the Admin tool.
    Django在Admin工具中显示对象时广泛地使用了这个方法。
  • Unfortunately, this extension can have a negative effect on the performance of a Django application.
    不幸的是,这个扩展对Django应用程序的性能有负面影响。
  • This tells Apache that the application has been updated, and it will continue to restart your Django application.
    这告诉Apache应用程序已经更新,然后它会重启Django应用程序。
  • To view the admin tool, you can use the test server that comes with Django.
    要查看这个管理工具,可以使用Django提供的测试服务器。
  • Once you have done this, Django will have been installed into your Python installation's site-packages folder, and you are ready to start developing in Django.
    完成以上操作之后,Django将被安装到您的Python安装的site-packages文件夹中,您可以开始在Django中进行开发了。
  • After installing Django, you should have the admin tool, django-admin. py, available on your path.
    在安装Django之后,您现在应该已经有了可用的管理工具django-admin.py。
  • Django is written entirely in Python, so to install Django, you first need to install Python.
    Django完全是用Python编写的,因此在安装Django之前必须先安装Python。
  • Django URLs can be easily remapped onto an application after a major refactoring.
    在发生重大变化之后,DjangoURL可以简单地重新映射到应用程序上。
  • The model layer of a Django application is handled by Django's data-access layer.
    Django应用程序的模型层由Django的数据访问层处理。
  • The Django URL dispatch system uses regular-expression configuration modules that map URL string patterns to Python methods called views.
    DjangoURL分发系统使用了正则表达式配置模块,它可以将URL字符串模式映射为Python方法views。
  • This independence means you can use only the parts of Django you need, without worrying about dependency issues.
    框架的独立性意味着您可以仅使用所需的Django部分,而不用担心依赖性带来的问题。
  • Because of this, the Django team refers to Django as an MVT ( model-view-template) framework.
    由于这个原因,Django小组将Django称为一个MVT(model-view-template)框架。
  • But rather than make it Django-specific, we chose to first roll out cmislib as a lower-level Python API.
    我们选择首先使用cmislib作为一个低级PythonAPI,而不是使集成特定于Django。
  • For that, you need to deploy Django to a production-grade Web server, such as Apache or lighttpd.
    因此,您需要将Django应用程序部署到生产级Web服务器,比如Apache或lighttpd。
  • Applications built with this framework have three main components: database model, HTML templates ( they were ported from Django), and JavaScript code, handling requests.
    使用该框架创建的应用程序有三个主要的组件:数据库模型、HTML模板(来源于Django)以及处理请求的JavaScript代码。
  • Geddy uses patterns common in existing MVC frameworks such as Rails or Django: routes with controllers/ actions, models, templating.
    Geddy使用了现有MVC框架中的常见模式,比如Rails和Django中用控制器/行为、模型、模板化的函数。
  • Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
    Django是一个高级PythonWeb框架,它鼓励快速开发和干净、实用的设计。
  • Dion demonstrated the simple poll application that we're all familiar with from the Django official tutorials.
    Dion演示了一个简单的投票程序,那是我们都熟悉的来自Django官方教程的示例。
  • Naturally they chose to use MS SQL Server for their database and Django does not support that database by default.
    自然,他们选择使用了MSSQLServer作为他们的数据库,而Django默认是不支持该数据库的。