Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 707 Bytes

SETUP.md

File metadata and controls

35 lines (26 loc) · 707 Bytes

参考

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