myblog (심화 개인과제)

@esthrelar·2023년 10월 7일
0

1. 환경 설정

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',
    )
}
profile
moved to tistory. ( linked w/ the home btn below. )

0개의 댓글