Django - AWSRDS postgresql connection

dooh kim·2020년 1월 31일
0

django default storage
https://docs.djangoproject.com/en/3.0/topics/files/

RDS 보안그룹 설정

  • EC2 보안그룹에서 postgreSQL TCP port 5432 위치 무관 설정

  • EC2 보안 그룸에서 설정 select
  • 퍼블릭 엑세스 가능성 - yes

터미널에서 postgresql 접속

psql --host=[RDS_endpoint 적어주세요] --username=마스터 이름 --dbname=db 클러스터 식별자

까먹지 마세요 골치 아픕니다!!

접속 성공!!

django config/settings.py DB 설정

pip install psycopg2-binary 설치

django makemigrations && migrate 후
마지막 runserver!!!

profile
testify to the light

0개의 댓글