Code Monkey home page Code Monkey logo

seminar-2022-django-assignment1's Introduction

Assignment 1

제출기한: 22.10.02(일) 23:59:59

problem 1

w3schools sql tutorial을 완료해보자.

제출

SQL Home ~ SQL Data Types 까지 진행하고 인증 스크린샷을 problem-1에 업로드해주세요.

problem 2

당신은 medium.com의 서버 개발자가 되어, 블로그 포스트를 모델링하고 이를 crud하는 API를 맡게 되었다.

미디엄 스크린샷

medium post detail page를 참고하여, 하단 API를 만든다.

GET /v1/posts/ list posts
POST /v1/posts/ create a post

GET /v1/posts/:id detail a post
POST /v1/posts/:id update a post
PATCH /v1/posts/:id partial update a post
DELETE /v1/posts/:id delete a post

제약사항

  • DB는 로컬에 postgresql 환경을 설정하여 사용한다.
  • 모델링하고, 이를 viewset에 적용하는 일 외 다른 수정사항은 최소화하여 진행한다.
    • authentication, pagination 등은 하지 않는다.
  • 하나의 모델 내에서만 모델링을 진행한다.
    • Foreign Key는 사용하지 않는다.
  • 다음 필드들은 꼭 한 번씩 사용한다.
    • CharField, DateTimeField, EmailField, TextField
    • 힌트: Django model fields 문서를 참고하면서 모델링해보세요.

제출

problem-2 폴더에 장고 프로젝트를 업로드해주세요.

problem 3

problem 2에서 작성한 API를 function based view로 같은 동작을 하도록 작성해보자.

힌트: Go To Implementation(command + click)을 적극 활용하여 django 내부 코드를 파악해보세요.

GET /v2/posts/ list posts
POST /v2/posts/ create a post

GET /v2/posts/:id detail a post
POST /v2/posts/:id update a post
PATCH /v2/posts/:id partial update a post
DELETE /v2/posts/:id delete a post

제출

problem-2에 업로드된 장고 프로젝트에 해당 뷰를 추가해주세요.

seminar-2022-django-assignment1's People

Contributors

narayo9 avatar orbizzz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.