... res in 1.3, as well as some backwards-incompatible changes you'll want to be aware of when upgrading from Django 1.2 or older versions. オーバービュー Django 1.3's focus has mostly been on reso ... ever possible, new features are introduced in a backwards-compatible manner per our API stability policy policy. As a result of this policy, Django 1.3 begins the deprecation process for some features . Python バージョン間の互換性 The release of Dj ... ango 1.2 was notable for having the first shift in Django's Python compatibility policy; prior to Django 1.2, Django supported any 2.x version of Python from 2.3 up. As of Django 1.2, the minimum requirement was raised t ... ... sting infrastructure that ships with Django for testing applications. See テストを書いて実行する for an explanation of how to write new tests. Running the unit tests Quickstart First, fork Django on GitHub . Second, create and activate a virtual en ... vironment. If you're not familiar with how to do that, read our contributing tutorial . Next, clone your fork, install some requirements, and run the tests: / $ git ... ettings module The included settings module ( tests/test_sqlite.py ) allows you to run the test suite using SQLite. If you want to run the tests using a different database, you'll need to define your own settings file. Some tests, such as those for c ... ... xx. By creating a fully-ready pull request, you will make the reviewer's job easier, meaning that your work is more likely to be merged into Django. You could also upload a traditional patch to Trac, but it's less practical for reviews. Git のインス ... トール Django uses Git for its source control. You can download Git, but it's often easier to install with your operating system's package manager. Django's Git repository is hosted on GitHub , and it is recommended ... ng the three commits, each prefixed with the word "pick". Change "pick" to "reword" (or "r") on the line of the commit you want to change, then save and close. A new editor will open for each commit marked as "reword", allowing you to update the mess ... ... ber, a brilliant mind, and a friend. His contributions to Django — and to many other open source projects — are nearly impossible to enumerate. Many on the core Django team had the ... ir first patches reviewed by him; his mentorship enriched us. His consideration, patience, and dedication will always be an inspiration to us. This release of Django ... Django 1.6 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.5 or older versions. We've also dropped some features, which are detailed in o ... ... オーバービュー The biggest new feature in Django 1.5 is the configurable User model . Before Django 1.5, applications that wanted to use Django's auth framework ( django.contrib.auth ) were forced to use Django's definition of a "user". In Django 1.5 ... , you can now swap out the User model for one that you write yourself. This could be a simple extension to the existing User model -- for example, you could add a Twitter or Facebook ID field -- or you could completely replace th ... e User with one totally customized for your site. Django 1.5 is also the first release with Python 3 support ! We're labeling this support "e ... ... The biggest new feature in Django 1.4 is support for time zones when handling date/times. When enabled, this Django will store date/times in UTC, use timezone-aware objects internally, and translate them to users' local timezones for display. If y ... ou're upgrading an existing project to Django 1.4, switching to the timezone aware mode may take some care: the new mode disallows some rather sloppy behavior th ... roblems around DST transitions. Time zone support is enabled by default in new projects created with startproject . If you want to use this feature in an existing project, read the migration guide . If you encounter problems, there's a helpful FAQ . ... ... ces the earlier connection in Django functions that send email. This guide provides details on migrating existing projects to the new mailers functionality. All Django projects that send email should: If using any third-party packages that send ema ... making other changes. Update email-related settings . Run with deprecation warnings enabled (see 廃止予定警告を解決する ) to identify other code needing updates. 注釈 Running tests may not identify all relevant deprecations. Test suites often use ... that would generate an InvalidMailer error for unknown OPTIONS. Backends must now handle fail_silently themselves, if they want to support it. There is no requirement to support fail_silently , and backends that don't offer it should eliminate that k ... ... 性を保ちやすくなっています。 TemplateResponseMixin Every built in view which returns a TemplateResponse will call the render_to_response() method that TemplateResponseMixin provides. Most of the time this will be called for you (for instance, it is c ... alled by the get() method implemented by both TemplateView and DetailView ); similarly, it's unlikely that you'll need to override it, although if you want your response to return something not rendered via a Django template then you'll want to ... as for rendering a template (including TemplateResponseMixin above), should call get_context_data() passing any data they want to ensure is in there as keyword arguments. get_context_data() returns a dictionary; in ContextMixin it returns its keywor ... ... メントはコードレポジトリの構成とそこでの作業方法と調査方法について説明しています。 大局的な概要 The Django source code repository uses Git to track changes to the code over time, so you'll need a copy of the Git client (a program called git ) on your ... computer, and you'll want to familiarize yourself with the basics of how Git works. Git's website offers downloads for various operating systems. Th ... e site also contains vast amounts of documentation . The Django Git repository is located online at github.com/django/django . It contains the full source code for all Django releases, which you can ... ... ます。 from django.core.mail import send_mail send_mail ( "Subject here" , "Here is the message." , "from@example.com" , [ "to@example.com" ], ) When additional email sending functionality is needed, use the EmailMessage or EmailMultiAlternatives cl ... ass. For example, to send a multipart email that includes both HTML and plain text versions with a specific template and custom headers, you ca ... ailable that integrate directly with ESP APIs or add other sending features. During development or testing you often don't want to send email at all. Django's test runner automatically overrides the MAILERS configuration to substitute Django's memory ... 2026年10月08日