BackEnd/Django

Cookiecutter

Raconer 2023. 4. 15. 20:06
728x90

Django를 개발 하다보면 초기 설정이 복잡하다.
그래서 CookieCutter을 사용한다.

Spring과 Spring Boot의 느낌인거 같다.

  • CookieCutter Hub

  • Cookiecutter 명령어

  • 설치시 Option

    • Cloning into 'cookiecutter-django'...
      remote: Counting objects: 550, done.
      remote: Compressing objects: 100% (310/310), done.
      remote: Total 550 (delta 283), reused 479 (delta 222)
      Receiving objects: 100% (550/550), 127.66 KiB | 58 KiB/s, done.
      Resolving deltas: 100% (283/283), done.
      project_name [Project Name]: Reddit Clone # 프로젝트 이름
      project_slug [reddit_clone]: reddit # 프로젝트 폴더 이름 (Default는 프로젝트 이름이다.)
      author_name [Daniel Roy Greenfeld]: Daniel Greenfeld # 프로젝트 식별 이름
      email [you@example.com]: pydanny@gmail.com # 프로젝트 식별 이메일
      description [Behold My Awesome Project!]: A reddit clone. # 프로젝트 설명으로 README.rst에 작성된다.
      domain_name [example.com]: myreddit.com # 사용될 도메인 주소 (추후 변경 가능) 
      version [0.1.0]: 0.0.1 # 시작 프로젝트 버전
      timezone [UTC]: America/Los_Angeles # 프로젝트 Timezone
      use_whitenoise [n]: n # static파일들을 collectstatics 명령수행시 지정경로에 파일들을 모아주는 역할을 한다.
      use_celery [n]: y # 비동기 처리방식 사용 
      use_mailhog [n]: n # 테스트 메일 서버
      use_sentry [n]: y # 에러 알림 서비스
      use_pycharm [n]: y # IDE 개발환경
      windows [n]: n # 운영체제
      use_docker [n]: n # Docker
      use_heroku [n]: y # Heroku
      use_compressor [n]: y # js나 css를 압축 하는 기능
      Select postgresql_version:
      1 - 13.2
      2 - 12.6
      3 - 11.11
      4 - 10.16
      Choose from 1, 2, 3, 4, 5 [1]: 1
      Select js_task_runner:
      1 - None
      2 - Gulp
      Choose from 1, 2 [1]: 1
      Select cloud_provider:
      1 - AWS
      2 - GCP
      3 - None
      Choose from 1, 2, 3 [1]: 1
      custom_bootstrap_compilation [n]: n
      Select open_source_license:
      1 - MIT
      2 - BSD
      3 - GPLv3
      4 - Apache Software License 2.0
      5 - Not open source
      Choose from 1, 2, 3, 4, 5 [1]: 1
      keep_local_envs_in_vcs [y]: y
      debug[n]: n
728x90

'BackEnd > Django' 카테고리의 다른 글

Document 프로젝트 생성  (0) 2023.04.15