Size: 789
Comment:
|
Size: 2039
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
= 당신의 첫번째 장고 application 만들기, part 1 = | = 당신의 첫번째 Django application 만들기, part 1 = |
Line 13: | Line 13: |
Throughout this tutorial, we'll walk you through the creation of a simple Web poll application. | 이 듀토리얼을 통해서 우리는 당신에게 간단한 web poll application 만드는 것을 알려줄 것이다. |
Line 15: | Line 15: |
It'll consist of two parts: | web poll application은 두 부분으로 구성된다. * 사람들이 polls에서 제안하고 poll의 결과를 보게 하는 publice site * 당신이 비밀리에 polls를 추가하고, 바꾸고, 삭제하는 admin site |
Line 17: | Line 19: |
A public site that lets people vote in polls and view poll results. An admin site that lets you add, change and delete polls behind the scenes. We'll assume you have Django installed already. |
우리는 당신이 이미 Django를 설치했다고 가정할 것이다. |
Line 21: | Line 21: |
== Initial setup == | == 초기설정 == 당신이 Django를 처음 사용하는 것이라면, 당신은 몇몇 initial setup에 주의해야 한다. {{{django-admin.py startproject myproject}}} 명령을 실행해라. 그것은 당신의 현재 디렉토리에 myproject 디렉토리를 만들 것이다. (만약 당신이 setup.py를 통해 장고를 install했다면, django-admin.py는 당신의 시스템 경로에 있을 것이다. 만약 당신의 경로가 아니라면, 당신은 site-packages/django/bin 에서 그것을 찾을 수 있다. {{| Where should this code live? If your background is in PHP, you're probably used to putting code under the Web server's document root (in a place such as /var/www). With Django, you don't do that. It's not a good idea to put any of this Python code within your Web server's document root, because it risks the possibility that people may be able to view your code over the Web. That's not good for security. Put your code in some directory outside of the document root, such as /home/mycode. |}} {{{ myproject/ __init__.py manage.py settings.py urls.py }}} === The development server === |
Line 24: | Line 48: |
Korean translation of http://www.djangoproject.com/documentation/tutorial1
당신의 첫번째 Django application 만들기, part 1
이 문서는 Django 0.9.1을 다룬다. 구버전 : 0.90 docs
By Adrian Holovaty <holovaty@gmail.com>, Translated by [parkpro77]
예제로 배워보자.
이 듀토리얼을 통해서 우리는 당신에게 간단한 web poll application 만드는 것을 알려줄 것이다.
web poll application은 두 부분으로 구성된다.
- 사람들이 polls에서 제안하고 poll의 결과를 보게 하는 publice site
- 당신이 비밀리에 polls를 추가하고, 바꾸고, 삭제하는 admin site
우리는 당신이 이미 Django를 설치했다고 가정할 것이다.
초기설정
당신이 Django를 처음 사용하는 것이라면, 당신은 몇몇 initial setup에 주의해야 한다.
django-admin.py startproject myproject 명령을 실행해라. 그것은 당신의 현재 디렉토리에 myproject 디렉토리를 만들 것이다.
(만약 당신이 setup.py를 통해 장고를 install했다면, django-admin.py는 당신의 시스템 경로에 있을 것이다. 만약 당신의 경로가 아니라면, 당신은 site-packages/django/bin 에서 그것을 찾을 수 있다.
{{| Where should this code live?
If your background is in PHP, you're probably used to putting code under the Web server's document root (in a place such as /var/www). With Django, you don't do that. It's not a good idea to put any of this Python code within your Web server's document root, because it risks the possibility that people may be able to view your code over the Web. That's not good for security.
Put your code in some directory outside of the document root, such as /home/mycode. |}}
myproject/ __init__.py manage.py settings.py urls.py
The development server
Database setup
Creating models
Activating models