> For the complete documentation index, see [llms.txt](https://sdc-james.gitbook.io/onebook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdc-james.gitbook.io/onebook/2./2.2./2.2.4..md).

# 3.2.4.     장고 설치

\
Anaconda Prompt 에서 onebook 가상환경인지를 확인한 후 먼저 장고의 기본 환경을 설치합니다.

\>sudo apt install python3-django-common

\>sudo apt install python3-django

![](/files/-LbRa4A-Maww_Suau7kW)

다음 명령으로 장고를 설치합니다.

\>pip install Django==2.1.7

장고 영문 표기에 D가 대문자이고, 설치버전을 지정할 때 == 두 개를 사용해야 합니다.

![](/files/-LbRa8Tbd02Vu4DcfV4v)

장고 설치가 정상적으로 완료 되었다면 장고 웹 프레임워크가 동작 하는지 확인해 봅니다.

\>django-admin startproject djangotest .

![](/files/-LbRaE96qj9n_QfPRMoH)

위의 명령을 실행해 줍니다. 명령 끝에. (점)을 입력하는 것은 현재 디렉토리에 장고를 설치하라고 스크립트에 알려주는 축약된 표시입니다. 이 명령으로 윈도우 사용자 기본 폴더에 djangotest 라는 폴더가 생성 되었으며 manage.py , settings.py 같은 파일도 자동으로 생성됩니다. 생성된 웹사이트를 확인 하려면 다음의 명령을 실행합니다.

\> python manage.py runserver

![](/files/-LbRaJoBgeHjoFEohUVI)

웹브라우저에서 주소창에 <http://127.0.0.1:8000/>을 입력하면 아래와 같은 웹 페이지를 볼 수 있습니다.

![](/files/-LbRaOJgbUnkC78J_oU2)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sdc-james.gitbook.io/onebook/2./2.2./2.2.4..md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
