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

Python World

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

Python World

검색하기 폼
  • 분류 전체보기 (51)
    • Basic (7)
    • Standard Library (4)
      • built-in functions (1)
    • OOP (1)
    • Web Crawling (2)
    • Test Driven Development (6)
    • Django (20)
    • Microservices (2)
    • Vue.js (1)
    • 구매후기 (1)
  • 방명록

views (1)
Rest Framework Views

Regular Django views from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.parsers import JSONParser from .models import Snippet from .serializers import SnippetSerializer @csrf_exempt def snippet_list(request): """ List all code snippets, or create a new snippet """ if request.method == 'GET': snippets = Snippet.objects.all()..

Django 2019. 8. 29. 15:08
이전 1 다음
이전 다음
최근에 올라온 글
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바