# Python Django 框架

自己动手，丰衣足食，打印 Django 教程的入口信息

```python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':

    # TODO(You): 请在此添加创建django项目和初始化目录的命令
    create_django = ...
    init_django = ...

    installs = [
        "安装：pip install django",
        f"创建django项目命令：{create_django}",
        "进入目录：cd projectName",
        f"初始化django项目命令：{init_django}",
        "进一步查看教程：https://docs.djangoproject.com/zh-hans/3.2/"
    ]
    for step in installs:
        print(step)
```

以下正确赋值创建django项目和初始化目录的命令的代码是？

## template

```python

if __name__ == '__main__':
    installs = [
        "安装：pip install django",
        "初始化：django-admin startproject projectName",
        "进入目录：cd projectName",
        "初始化：python manage.py startapp projectApp",
        "进一步查看教程：https://docs.djangoproject.com/zh-hans/3.2/"
    ]
    for step in installs:
        print(step)
```

## 答案

```python
create_django = 'django-admin startproject projectName'
init_django = 'python manage.py startapp projectApp'
```

## 选项

### A

```python
create_django = 'django startproject projectName'
init_django = 'django startapp projectApp'
```

### B

```python
create_django = 'python manage.py startproject projectName'
init_django = 'python manage.py startapp projectApp'
```

### C

```python
create_django = 'django-admin startproject projectName'
init_django = 'django-admin startapp projectApp'
```
