2.プロジェクトとアプリの作成

Python

install Django

pip install django

make project and application

django-admin startproject [your-project-name]
cd [your-project-name]
python manage.py startapp [your-app-name]

make directory

mkdir [your-directory-name]
type nul > [your-file-name].py
[任意のプロジェクト名]
--- media --- photo --- sample.webp
--- static --- css --- style.css
--- [任意のプロジェクト名] --- urls.py
                         --- settings.py
--- [任意のアプリ名] --- admin.py
                    --- urls.py
                    --- forms.py
                    --- views.py
                    --- models.py
                    --- migrations
                    --- templates --- [任意のアプリ名] --- base.html
                                                      --- index.html
                                                      --- edit.html
                                                      --- detail.html
                                                      --- delete.html
                                                      --- new.html

install library

cd [任意のプロジェクト名]
pip install django
pip install django-cleanup
pip install Pillow

pip list  // Djangoがインストールされているか確認します

BACK