번역 작업 진행중입니다.
The first article in our practical tutorial series explains what you'll learn, and provides an overview of the "local library" example website we'll be working through and evolving in subsequent articles.
|Prerequisites:||Read the Django Introduction. For the following articles you'll also need to have set up a Django development environment.|
|Objective:||To introduce the example application used in this tutorial, and allow readers to understand what topics will be covered.|
MDN "로컬 라이브러리" Django 튜토리얼에서 오신 것을 환영합니다. 여기에서는 , "로컬 라이브러리" 카탈로그를 운영하는데 사용될 수 있는 웹사이트를 개발 할 것입니다. .
이 튜토리얼 시리즈에서 다루어질 것은 아래와 같읍니다.:
- 웹사이트의 골격과 애플리케이션을 만들기 위한 'Django' 툴 사용하기.
- 개발 서버 시작하기와 끝내기.
- 애플리케이션 데이터를 보여주기 위한 모델 구축하기.
- 사이트 데이터를 정주(populate)시키기 위해서 'Django' 관리자(admin) 사이트 사용하기
- 다른 리퀘스트와 에 반응하는 특정 데이터와, 브라우저에 표현되어지는 HTML을 데이터로서 렌더링하는 템플릿을 갱신하여 뷰(view) 만들기 .
- 다른 URL 패턴과 특정한 뷰를 연결시키는 맴퍼(mappers) 만들기
- 사이트 행태(behaviour)와 액세스 통제하기 위한 유저 인증(authorisation) & 세션 추가하기.
- 폼 작업하기.
- 앱에 사용할 테스트 코드 작성하기.
- 'Django's 보안을 효과적으로 하기
- 애플리케이션 제품에 구현하기.
You have learnt about some of these topics already, and touched briefly on others. By the end of the tutorial series you should know enough to develop simple Django apps by yourself.
The LocalLibrary website
LocalLibrary is the name of the website that we'll create and evolve over the course of this series of tutorials. As you'd expect, the purpose of the website is to provide an online catalog for a small local library, where users can browse available books and manage their accounts.
This example has been carefully chosen because it can scale to show as much or little detail as we need, and can be used to show off almost any Django feature. More importantly, it allows us to provide a guided path through the most important functionality in the Django web framework:
- In the first few tutorial articles we will define a simple browse-only library that library members can use to find out what books are available. This allows us to explore the operations that are common to almost every website: reading and displaying content from a database.
- As we progress, the library example naturally extends to demonstrate more advanced Django features. For example we can extend the library to allow users to reserve books, and use this to demonstrate how to use forms, and support user authentication.
Even though this is a very extensible example, it's called LocalLibrary for a reason — we're hoping to show the minimum information that will help you get up and running with Django quickly. As a result we'll store information about books, copies of books, authors and other key information. We won't however be storing information about other items a library might store, or provide the infrastructure needed to support multiple library sites or other "big library" features.
I'm stuck, where can I get the source?
As you work through the tutorial we'll provide the appropriate code snippets for you to copy and paste at each point, and there will be other code that we hope you'll extend yourself (with some guidance).
If you get stuck, you can find the fully developed version of the website on Github here.
Now that you know a bit more about the LocalLIbrary website and what you're going to learn, it's time to start creating a skeleton project to contain our example.
In this module
- Django introduction
- Setting up a Django development environment
- Django Tutorial: The Local Library website
- Django Tutorial Part 2: Creating a skeleton website
- Django Tutorial Part 3: Using models
- Django Tutorial Part 4: Django admin site
- Django Tutorial Part 5: Creating our home page
- Django Tutorial Part 6: Generic list and detail views
- Django Tutorial Part 7: Sessions framework
- Django Tutorial Part 8: User authentication and permissions
- Django Tutorial Part 9: Working with forms
- Django Tutorial Part 10: Testing a Django web application
- Django Tutorial Part 11: Deploying Django to production
- Django web application security
- DIY Django mini blog