본문 바로가기

Tech

Django 공식 문서로 Django 입문하기 (4) - Dockerize 해당 게시글에서 사용한 코드는 아래 Github 에서 확인할 수 있다.https://github.com/baobabnamu/goormthon GitHub - baobabnamu/goormthon: Monolithic Repositories About Goormthon Missions, Study, LectureMonolithic Repositories About Goormthon Missions, Study, Lecture - baobabnamu/goormthongithub.com Django 용 Dockerfile 작성 Django + DB 종속성을 보장하는 Docker Compose 파일 작성 docker-compose up --build 후 페이지 접근 확인아래와 같이 admin 및 polls 앱에.. 더보기
Django 공식 문서로 Django 입문하기 (3) - Vote 앱 개발하기 해당 게시글에서 사용한 코드는 아래 Github 에서 확인할 수 있다.https://github.com/baobabnamu/goormthon GitHub - baobabnamu/goormthon: Monolithic Repositories About Goormthon Missions, Study, LectureMonolithic Repositories About Goormthon Missions, Study, Lecture - baobabnamu/goormthongithub.com Polls 앱을 위한 detail, results, vote View 개발템플릿 개발 전이므로 HttpResponse 객체에 문자열만 담아서 반환하도록 함 URLconf 설정을 통해 View 와 매핑들어오는 HTTP 요청의 .. 더보기
Django 공식 문서로 Django 입문하기 (2) - DB 연동 및 관리자 페이지 연동 해당 게시글에서 사용한 코드는 아래 Github 에서 확인할 수 있다.https://github.com/baobabnamu/goormthon GitHub - baobabnamu/goormthon: Monolithic Repositories About Goormthon Missions, Study, LectureMonolithic Repositories About Goormthon Missions, Study, Lecture - baobabnamu/goormthongithub.com Django 설치하기아래 코드를 참고하여 Django 프로젝트 셋팅 준비#!/bin/zsh# pyenv 설치brew install pyenv# pyenv 설정echo 'export PYENV_ROOT="$HOME/.pyenv".. 더보기