seulcoding

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

backend/django-rest-framework 2

django rest framework viewset router의 namespace

Django rest framework에서 viewset을 사용하는 경우 따로 url name 을 지정하지 않기 때문에 reverse등을 사용할 때 url namespace와 name을 알기가 힘들었다.그래서 소스 코드를 보던 중 자동으로 url name을 생성해주는 것을 발견해서 공유한다.viewset을 사용하면 list와 detail 크게 두가지의 url이 생성된다. 간단하게 다음과 같은 url name을 입력하면 해당 viewset의 list url을 알 수 있다.# list의 경우 ':-list' # detail의 경우 ':-detail' url_namespace: core url(base urls.py)에 적은 namespacebase_name: viewset을 router에 등록할 때 쓴 ba..

backend/django-rest-framework 2018.01.11

DRF (Django Rest Framework) serializer 공식문서 정리

SerializersSerializer란??처음 듣는 용어. 직렬 변환기?In computer science, in the context of data storage, serialization is the process of translating data structures or object state into a format that can be stored (for example, in a file or memory buffer) or transmitted (for example, across a network connection link) and reconstructed later (possibly in a different computer environment).[1]serializers: 쿼리셋..

backend/django-rest-framework 2017.11.23
이전
1
다음
더보기
프로필사진

seulcoding

  • 분류 전체보기 (594)
    • backend (269)
      • computer science (5)
      • django (80)
      • django-rest-framework (2)
      • python (41)
      • ubuntu (29)
      • sql (postgres) (21)
      • R (2)
      • 데이터분석 (6)
      • docker (21)
      • blockchain (7)
      • rust (2)
      • kubernetes (5)
      • kubernetes in action (18)
      • kubernetes docs (10)
    • frontend (38)
      • html & css (13)
      • javascript (6)
      • React (0)
      • react.js (0)
      • vue.js (14)
      • node.js (2)
    • tools (185)
      • aws (9)
      • linux (22)
      • git (8)
      • vim (92)
      • vimscript (0)
      • mac (28)
      • terminal (8)
      • jekyll blog (5)
      • apis (3)
    • etc (48)
      • 안드로이드 (1)
      • 02_1.오늘의인턴 (25)
      • 생활코딩-웹프로그래밍 (9)
      • introducing python: 처음 시작하는.. (6)
    • Life & Idea (24)
      • 도쿄,하코네 (7)
      • 비계 (2)
      • 행복 (8)
    • Toy Project (1)

Tag

django, kubernetes in action, Shell, Kubernetes, fold, POD, Linux, Mac, Folding, vimscript, Docker, Shell Script, backend, k8s, configmap, vim, helm, section, Service, external command,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바