Django 1.10.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.10 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated admin0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 1.10.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.10 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated admin0 码力 | 2538 页 | 2.59 MB | 1 年前3
Django 1.8.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.8 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. 2.3. Writing your first Django app, part 1 15 Django Documentation, Release 1.8.20.dev20180306181007 __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 1.8.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.8 You may have another database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. If you’re using SQLite, you don’t need to create anything beforehand - the database file will be __str__() methods to your models, not only for your own convenience when dealing with the interactive prompt, but also because objects’ representations are used throughout Django’s automatically-generated admin0 码力 | 2454 页 | 2.85 MB | 1 年前3
Django、Vue 和Element UI 前后端原理论述file>settings>plugins,搜索“Bito”,安装即可。十分简单、方便,不是?! ·使用方法 Bito 支持代码解释、生成注释、性能检查、安全检查、风格检查、可读性提升、单 元测试用例生成,以及自定义 prompt 等功能,如下图所示。 10 《51 测试天地》七十四 www.51testing.com 如何使用呢? 1) 以“代码解释”为例 打开 IntelliJ 右侧工具栏,选择 Bito。然后选中代码,点击 了! 那么,如何做呢?试试 Bito 的自定义 prompt (https://docs.bito.ai/feature-guides/custom-prompt-templates)。 如下所示,点击“new templates”,即可创建自己的 prompt 模板。值得注意的是:目 前 Bito 只支持用户自定义 4 个 prompt 模板。 13 《51 测试天地》七十四 www www.51testing.com 可能刚接触的你,还不知道如何编写 prompt,可以先借鉴下 prompthub 中已有的模 板(https://prompthub.bito.ai/)。如下图所示,是 prompthub 提供的一个 bug 检测和修正模 板。 通过自定义的 prompt 模板,即可完成跨语言的用例编写。如下图所示,是使用 java 语言生成的、针对 python 代码的单元测试用例。0 码力 | 61 页 | 6.84 MB | 1 年前3
Django 2.2.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 2.2 You may have another already. You can tell Django is installed and which version by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 1.11.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.11 You may have another already. You can tell Django is installed and which version by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 1.11.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 1.11 You may have another already. You can tell Django is installed and which version by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 2.0.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 2.0 You may have another already. You can tell Django is installed and which version by running the following command in a shell prompt (indicated by the $ prefix): 2.3. Writing your first Django app, part 1 13 Django Documentation database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 2.0.x DocumentationVerifying To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django: >>> import django >>> print(django.get_version()) 2.0 You may have another already. You can tell Django is installed and which version by running the following command in a shell prompt (indicated by the $ prefix): $ python -m django --version If Django is installed, you should see database by this point. Do that with “CREATE DATABASE database_name;” within your database’s interactive prompt. Also make sure that the database user provided in mysite/settings.py has “create database” privileges0 码力 | 2746 页 | 2.67 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













