Two Scoops of Django(3) - 어떻게 장고 프로젝트를 구성할 것인가

less than 1 minute read

3장. 어떻게 장고 프로젝트를 구성할 것인가

3.1 추천하는 프로젝트 구성

  1. 최상위 레벨: 저장소 루트
  2. 두 번째 레벨: 프로젝트 루트
  3. 세 번째 레벨: 설정 루트

※ 많은 개발자들이 저장소 루트와 프로젝트 루트를 같은 루트로 사용한다.

repository-root
    .gitignore
    Makefile
    docs/
    READ.rst
    requirement.txt
    django_project-root/
        manage.py
        media/
        products/
        profiles/
        app1/
        app2/
        static/
        templates/
        configration-root(config)/
            __init__.py
            settings.py
            urls.py
            wsgi.py

cookiecutter-django를 이용하여 이러한 프로젝트 구성 설정을 조금 더 간편하게 진행할 수 있다.

Leave a comment