Journey to Dev
  • 홈
  • 프로젝트
  • 알고리즘
  • 독학
  • 웹개발과정
  • 기타
    • 분류 전체보기
      • Self-Study
        • Spring
        • Javascript
        • React
        • Vue
        • Electron
        • DJango
        • 계란으로 바위치기
        • 기타
      • Algorithm
        • Programmers
        • Baekjoon
      • Project
        • JSP(Servlet)
        • Spring
        • Tensorflow
        • React
      • WebDev
        • 본과정
        • 예비과정
      • ETC
        • 개발 회고록
        • 기술면접
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
ORM 검색 결과
1 개의 검색 결과가 있습니다.
Self-Study/DJango

장고의 모델 계층

1. 정의 테이블을 정의하는 장고의 클래스. ORM 방식 기반이기 때문에 테이블을 클래스의 형태로 정의하고 있어 관련 컬럼들을 변수 및 메소드로 선언 및 할당 할 수 있다. # 모델 클래스 class Alubum(model.Model): # 모델 속성 name = models.CharField(max_length=50) description = models.CharField('One line Description', max_length=100, blank=True) owner = models.ForeignKey(User, null=True) # Meta 내부 클래스 class Meta: ordering = ['name'] # 모델 메소드 def __str__(self): return self.name d..

2021. 5. 24. 00:56
  • «
  • 1
  • »

전체 카테고리

  • 분류 전체보기
    • Self-Study
      • Spring
      • Javascript
      • React
      • Vue
      • Electron
      • DJango
      • 계란으로 바위치기
      • 기타
    • Algorithm
      • Programmers
      • Baekjoon
    • Project
      • JSP(Servlet)
      • Spring
      • Tensorflow
      • React
    • WebDev
      • 본과정
      • 예비과정
    • ETC
      • 개발 회고록
      • 기술면접
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

  • #java
  • #React
  • #kibana
  • #controller
  • #JavaScript
  • #springboot
  • #mybatis
  • #Spring
  • #리액트
  • #Spring Security
  • #View
  • #clone
  • #Framework
  • #commit
  • #jsp
  • #MVT
  • #Django
  • #Model
  • #electron
  • #nextjs
  • #sort
  • #MVCPattern
  • #python
  • #template
  • #git
  • #logstash
  • #ubuntu
  • #Vue
  • #ElasticSearch
  • #Session
더보기+

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © Journey to Dev All rights reserved. TistoryWhaleSkin3.4

티스토리툴바