본문 바로가기 메뉴 바로가기

차곡차곡 개발일지

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

차곡차곡 개발일지

검색하기 폼
  • 전체보기 (88)
    • Web (3)
    • Django (39)
      • ▶-----Pystagram (15)
    • Java (11)
      • ▶-----it;da (11)
    • Spring (0)
    • JavaScript (7)
    • jQuery (1)
    • MySQL (4)
    • Git (4)
    • Algorithm (19)
      • Programmers (19)
    • GA&GTM (0)
  • 방명록

Redirect (1)
[Django Basic 06] HttpResponse VS HttpResponseRedirect / render VS redirect

1. HttpResponse VS HttpResponseRedirect HttpResponse HttpResponse() : HttpResponse 객체를 반환 HTTP코드가 200이고 생성자로 전달된 컨텐츠를 포함한 HttpResponse 객체 생성 보통 작은 response에서만 사용 (ajax로 받은 데이터나, 작은 number 등) from django.http import HttpResponse def index(request): return HttpResponse("What do you do in your free time?") HttpResponseRedirect HttpResponseRedirect() : 주어진 url로 redirection HTTP코드가 302(Found/Moved te..

Django 2020. 1. 30. 09:50
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Redis
  • MySQL
  • Django application
  • Django 비밀번호 수정
  • Django 로그인
  • Redis Cache
  • 서점 어플리케이션
  • Django 좋아요
  • Django 검색
  • Django
  • Django 회원가입
  • 장고
  • Django 해시태그
  • Django 회원 정보 수정
  • Django 인스타그램
  • java
  • Django 로그아웃
  • 북마크 어플리케이션
  • Django 업로드
  • 파이썬
  • Django 프로젝트 생성
  • Django 댓글
  • query parameter
  • Django Instagram
  • python
  • Django 어플리케이션
  • Django 북마크
  • Django User
  • Django 팔로우
  • Django 컬렉션
more
«   2026/05   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바