Django ドキュメント¶
Django を使いこなすための全てがここにあります。
最初のステップ¶
Django やプログラミングは初めてですか? それなら、ここから始めましょう!
From scratch: Overview | Installation
Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5: Testing | Part 6: Static files | Part 7: Customizing the admin site | Part 8: Adding third-party packages
Advanced Tutorials: How to write reusable apps | Writing your first contribution to Django
助けを求める¶
困り事ですか?手を貸しましょう!
Try the FAQ -- it's got answers to many common questions.
Looking for specific information? Try the 索引, モジュール索引 or the detailed table of contents.
Not found anything? See FAQ: 助けを求める for information on getting support and asking questions to the community.
Django のバグを見つけたときは、 チケットトラッカー で報告してください。
本ドキュメントの構成¶
Django にはドキュメントがたくさんあります。あらかじめドキュメントの構成の大まかな概要を知っておけば、特定のトピックを探すときに、どこを探せばいいかすぐに分かるようになるでしょう。
チュートリアル では、一連のステップを通して、実際に手を動かしながら Web アプリケーションを作ります。もし Django や Web アプリケーションの開発が初めてなら、ここから読み始めてください。「 最初のステップ 」のセクションも読んでみてください。
トピックガイド では、重要なトピックや概念について大まかに解説し、役に立つ背景情報や説明を行っています。
リファレンスガイド は、API や他の側面から見た Django の仕組みの技術的なリファレンスです。ここでは、Django の仕組みとその使い方について説明していますが、重要な概念については基本的に理解していることを前提に書かれています。
How-to ガイド はレシピ集です。よくある問題やユースケースに対して、どんなステップを踏んで解決すればいいかを説明しています。チュートリアルより発展的な内容で、Django の仕組みについてはある程度は理解していることを前提に書いてあります。
モデル層¶
Django は、Web アプリケーションのデータ構造を定義、操作するための抽象レイヤ「モデル (models)」を提供しています。詳細は以下を参照してください:
Models: Introduction to models | Field types | Indexes | Meta options | Model class
QuerySets: Making queries | QuerySet method reference | Lookup expressions
Model instances: Instance methods | Accessing related objects
Migrations: Introduction to Migrations | Operations reference | SchemaEditor | Writing migrations
Advanced: Managers | Raw SQL | Transactions | Aggregation | Search | Custom fields | Multiple databases | Custom lookups | Query Expressions | Conditional Expressions | Database Functions
Other: Supported databases | Legacy databases | Providing initial data | Optimize database access | PostgreSQL specific features
ビュー層¶
Django には「ビュー (views)」と呼ばれる概念があります。ビューは、ユーザーリクエストを処理してレスポンスを返すロジックをカプセル化したものです。以下のリンクから、ビューの詳細を学びましょう。
The basics: URLconfs | View functions | Shortcuts | Decorators | Asynchronous Support
Reference: Built-in Views | Request/response objects | TemplateResponse objects
File uploads: Overview | File objects | Storage API | Managing files | Custom storage
Class-based views: Overview | Built-in display views | Built-in editing views | Using mixins | API reference | Flattened index
Advanced: Generating CSV | Generating PDF
Middleware: Overview | Built-in middleware classes
テンプレート層¶
テンプレート層は、ユーザに表示される情報をレンダリングするための、デザイナーにも書きやすい構文を提供します。デザイナーによるテンプレートの構文の使い方や、プログラマーが構文を拡張する方法について学びましょう。
The basics: Overview
For designers: Language overview | Built-in tags and filters | Humanization
For programmers: Template API | Custom tags and filters | Custom template backend
フォーム¶
Django には、フォームを簡単に作成したり、フォームに入力されたデータを簡単に操作できるようにしてくれる、多機能なフレームワークがあります。
The basics: Overview | Form API | Built-in fields | Built-in widgets
Advanced: Forms for models | Integrating media | Formsets | Customizing validation
開発プロセス¶
Django アプリケーションの開発とテストに役立つ、さまざまなコンポーネントとツールについて学ましょう。
Settings: Overview | Full list of settings
Applications: Overview
Exceptions: Overview
django-admin and manage.py: Overview | Adding custom commands
Testing: Introduction | Writing and running tests | Included testing tools | Advanced topics
Deployment: Overview | WSGI servers | ASGI servers | Deploying static files | Tracking code errors by email | Deployment checklist
管理インタフェース¶
Django の目玉機能の一つである、自動生成の管理インタフェースのすべてを学びましょう。
セキュリティ¶
セキュリティは Web アプリケーションを開発する中でも最も重要なトピックです。Django は、複数のプロテクションのためのツールとメカニズムを提供しています:
国際化と地域化¶
Django は堅牢な国際化、地域化フレームワークを提供しています。これらのフレームワークを使えば、多言語、世界の各地域に対応したアプリケーションが簡単に開発できます。
パフォーマンスと最適化¶
ソースコードをさらに効率的かつ高速に実行し、より少ないシステムリソースで動作するようにするのを助けてくれる、様々な技術とツールが存在します。
地理情報フレームワーク¶
GeoDjango intends to be a world-class geographic web framework. Its goal is to make it as easy as possible to build GIS web applications and harness the power of spatially enabled data.
一般的な Web アプリケーションツール¶
Django は Web アプリケーションの開発でよく必要とされるツール群を提供しています。
Authentication: Overview | Using the authentication system | Password management | Customizing authentication | API Reference
その他の主要機能¶
Django フレームワークの、その他の主要機能について学びましょう。
オープンソースプロジェクトとしての Django¶
Django プロジェクト自身の開発プロセスと、プロジェクトに貢献する方法について学びましょう。
Community: Contributing to Django | The release process | Team organization | The Django source code repository | Security policies | Mailing lists and Forum
Design philosophies: Overview
Documentation: About this documentation
Third-party distributions: Overview
Django over time: API stability | Release notes and upgrading instructions | Deprecation Timeline