Django、Vue 和Element UI 前后端原理论述
作者:测试安静 16 《51 测试天地》七十四 www.51testing.com 然后将读取的内容转换成了字典的形式,方便后续使用这些数据。 import yaml file_path = r'D:\test_daily\test.yaml' with open(file_path, 'r', encoding='utf-8') as f: t = f.read() # 通过字典的形式显示 测试数据准备好了,小编这里就直接通过 requests 进行将 yaml 读取到的结果放入到 请求参数中。 # coding:utf-8 import yaml import requests file_path = r'D:\test_daily\test.yaml' with open(file_path, 'r', encoding='utf-8') as f: t = f.read() # 通过字典的形式显示 parametrize 模块进行完成,可以参考以下的代码: # coding:utf-8 import yaml import pytest import requests file_path = r'D:\test_daily\test.yaml' with open(file_path, 'r', encoding='utf-8') as f: t = f.read() # 通过字典的形式显示0 码力 | 61 页 | 6.84 MB | 1 年前3Django 官方教程翻译项目
构建 在你上网的过程中,很可能看见过像这样美丽的 URL:“ME2/Sites/dirmod.asp? sid=&type=gen&mod=Core+Pages&gid=A6CD4967199A42D9B65B1B”。别担心,Django 里的 URL 要比这优雅的多! 一个 URL 模式定义了某种 URL 的基本格式 —— 举个例子: /newsarchive// / 满意的了。 在更加复杂的应用中,各种组件之间的交互可能会及其的复杂。改变其中某一组件的行为,也有可能 会造成意想不到的结果。判断「代码是否正常工作」意味着你需要用大量的数据来完整的测试全部代 码的功能,以确保你的小修改没有对应用整体造成破坏——这太费时间了。 尤其是当你发现自动化测试能在几秒钟之内帮你完成这件事时,就更会觉得手动测试实在是太浪费时 间了。当某人写出错误的代码时,自动化测试还能帮助你定位错误代码的位置。 部分自动化。 一个找出代码中未被测试部分的方法是检查代码覆盖率。它有助于找出代码中的薄弱部分和无用部 分。如果你无法测试一段代码,通常说明这段代码需要被重构或者删除。想知道代码覆盖率和无用代 码的详细信息,请看文档 和 coverage.py 结合使用。 测试那是越多越好 进一步测试 然后呢? 创建你的第一个 Django 项目, 第五部分 - 65 - 本文档使用 书栈(BookStack 0 码力 | 103 页 | 1.86 MB | 1 年前3Django CMS 3.11.10 Documentation
perfectionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that build web docker compose up -d database_default docker compose run web python manage.py migrate docker compose run web python manage.py createsuperuser docker compose up -d After selecting Next, you list: Note The way we have set up the template here is just for illustration. In a real project, we’d recommend creating a base.html template, shared by all the applications in the project, that your django0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django CMS 4.1.x Documentation
perfectionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that build web docker compose up -d database_default docker compose run web python manage.py migrate docker compose run web python manage.py createsuperuser docker compose up -d After selecting Next, you list: Note The way we have set up the template here is just for illustration. In a real project, we’d recommend creating a base.html template, shared by all the applications in the project, that your django0 码力 | 518 页 | 1.66 MB | 6 月前3Django 5.1.2 Documentation
to write reusable apps | Writing your first contribution to Django Getting help Having trouble? We’d like to help! Try the FAQ – it’s got answers to many common questions. Looking for specific information the given format (as found in PHP’s date function). You can chain together as many filters as you’d like. You can write custom template filters. You can write custom template tags, which run custom Python "credits" or "license" for more information. >>> Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such0 码力 | 3519 页 | 3.17 MB | 1 年前3django cms 4.1.1 Documentation
perfectionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that build web docker compose up -d database_default docker compose run web python manage.py migrate docker compose run web python manage.py createsuperuser docker compose up -d During the installation process ] Note: The way we have set up the template here is just for illustration. In a real project, we’d recommend creating a base.html template, shared by all the applications in the project, that your django0 码力 | 361 页 | 2.00 MB | 1 年前3Django 5.1 Documentation
to write reusable apps | Writing your first contribution to Django Getting help Having trouble? We’d like to help! Try the FAQ – it’s got answers to many common questions. Looking for specific information the given format (as found in PHP’s date function). You can chain together as many filters as you’d like. You can write custom template filters. You can write custom template tags, which run custom Python "credits" or "license" for more information. >>> Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such0 码力 | 3513 页 | 3.17 MB | 1 年前3django cms 4.1.x Documentation
perfectionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that build web docker compose up -d database_default docker compose run web python manage.py migrate docker compose run web python manage.py createsuperuser docker compose up -d During the installation process ] Note: The way we have set up the template here is just for illustration. In a real project, we’d recommend creating a base.html template, shared by all the applications in the project, that your django0 码力 | 357 页 | 1.99 MB | 1 年前3Django 5.0.x Documentation
How to write reusable apps | Writing your first patch for Django Getting help Having trouble? We’d like to help! Try the FAQ – it’s got answers to many common questions. Looking for specific information the given format (as found in PHP’s date function). You can chain together as many filters as you’d like. You can write custom template filters. You can write custom template tags, which run custom Python "credits" or "license" for more information. >>> Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such0 码力 | 3407 页 | 3.21 MB | 1 年前3Django 1.8.x Documentation
Django documentation Everything you need to know about Django. Getting help Having trouble? We’d like to help! Try the FAQ – it’s got answers to many common questions. Looking for specific information the given format (as found in PHP’s date function). You can chain together as many filters as you’d like. You can write custom template filters. You can write custom template tags, which run custom Python "credits" or "license" for more information. >>> Set up a database This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MySQL, or Oracle. To install such a database0 码力 | 2454 页 | 2.85 MB | 1 年前3
共 91 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10