Skip to content

user 정보 불러오는 로직 #7

Description

@chanwoongYoon

마이 페이지 로드 기준

#views.py

  1. html 불러오기
    def mypage_view(request):
    return render(request, 'users/mypage.html')

#mypage.js
2. 페이지 로드 시 js 에서 renderProfile() 함수 불러옴
window.addEventListener('DOMContentLoaded', renderProfile);

#mypage.js
4. renderProfile()에서 getUserData() return값 저장
async function renderProfile() {
const user = await getUserData();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions