DB (M:N / User - User 'Follow'기능)

윤동훈·2023년 4월 13일
0

User 자기 자신과의 M:N 관계 설정을 통한 팔로우 기능 구현하기

[Profile]

  • 자연스러운 follow 흐름을 위해 Profile page 먼저 생성

파일 경로 ➡️ accounts/urls.py

파일 경로 ➡️ accounts/views.py

파일 경로 ➡️ accounts/profile.html

파일 경로 ➡️ templates/base.html

파일 경로 ➡️ articles/index.html

[Follow]

[모델 관계 설정]

파일 경로 ➡️ accounts/models.py

$ python manage.py makemigrations

$ python manage.py migrate

[Follow 구현]

파일 경로 ➡️ accounts/urls.py

파일 경로 ➡️ accounts/views.py

파일 경로 ➡️ accounts/profile.html

0개의 댓글