• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

accountapp 내부 템플릿에 accountapp 같은 경로명을 하는 이유가 있을까요?

23.02.14 12:54 작성 조회수 177

0

헷갈릴까바 일부로 이름을 다르게 가져갔는데

 

Httpresponseredirect와 render의 경로 참조방법이 헷갈립니다.

질문1. Httpresponseredirect의 ':' 는 어떤걸까요?

 

views.py에서 아래와 같이 실행했습니다.

        return HttpResponseRedirect(reverse('Account_app:hello_world'))
    else:
        hello_world_list = HelloWorld.objects.all()
        return render(request, 'accountapp/hello_world.html', context={'hello_world_list': hello_world_list})

답변 0

답변을 작성해보세요.

답변을 기다리고 있는 질문이에요.
첫번째 답변을 남겨보세요!