Django REST Frameworkを使って爆速でAPIを実装する
$ cd django-rest
$ pipenv --python 3.10
$ pipenv install django djangorestframework django-filter
$ pipenv install black --dev --pre
$ pipenv install isort --dev
$ source ./.venv/bin/activate
$ pipenv shell
(django-rest)$ django-admin startproject myrest
(django-rest)$ exit
$ cd myrest/
$ pipenv run python manage.py startapp blog
# Create Model classes in blog/models.py
# migration
$ pipenv run python manage.py makemigrations
$ pipenv run python manage.py migrate
#
superuser
name: sugawarayasushi
main: [email protected]
pass: 6116