简单Django

时间:2021-02-10 01:55:17
【文件属性】:
文件名称:简单Django
文件大小:11KB
文件格式:ZIP
更新时间:2021-02-10 01:55:17
Python Sipmle Django项目 要求 创建一个基本的Django项目,如下所示: 一个单一的“ hello_world”应用 基于以下数据库表的应用程序模型: -> table_1,其中包含字段: ----> table_1_id(int) ----> field_1(文本) ----> table_2_id(int)(与table_2一对一的外键) -> table_2,其中包含字段: ----> table_2_id(int) ----> field_2(文本) 网址为“ hello-world”的单个视图-从table_1中提取单个条目,并从table_2中获取相关条目,并传递到“ hello_world.html”模板-hello_world.html模板,以field_1作为标题和所有field_2作为无序列表 单一视图的单元测试-单元测试需要使用低级djang
【文件预览】:
simple-django-master
----.gitignore(689B)
----requirements.txt(13B)
----hello_world()
--------templates()
--------urls.py(126B)
--------__init__.py(0B)
--------views.py(734B)
--------models.py(292B)
--------apps.py(96B)
--------admin.py(728B)
--------migrations()
--------tests.py(2KB)
----README.md(1KB)
----simple()
--------templates()
--------urls.py(182B)
--------__init__.py(0B)
--------asgi.py(389B)
--------wsgi.py(389B)
--------settings.py(3KB)
----manage.py(662B)

网友评论