python3 -m venv venv
source venv/bin/activate
pip install django djangorestframework djangorestframework-simplejwt
pip freeze > requirements.txt
django-admin startproject myblog
touch .gitignore
macOS, Windows, django, visualstudiocode, python
으로 https://www.toptal.com/developers/gitignore 에서 받음.
git init
git remote add origin (주소)
git add .
git commit -m "init project"
git push origin main
INSTALLED_APPS = [
...
'rest_framework',
'rest_framework_simplejwt',
]
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_simplejwt.authentication.JWTAuthentication',
)
}