per page, with , order by , clip by
Results of 1 - 10 of about 83 for them (0.005 sec.)
配信 (syndication) フィード フレームワーク 14441
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... be included directly in the URL, so you are responsible for doing all necessary URL quoting and conversion to ASCII inside the method itself. 複雑な例 このフレームワークは、引数を通じて、より複雑なフィードもサポートしています。 たとえば、あるウェブサ ... s.translation.get_language(). language = "de" # TITLE -- One of the following three is required. The framework # looks for them in this order. def title ( self , obj ): """ Takes the object returned by get_object() and returns the feed's title as a n ... string. """ title = "foo" # Hard-coded title. # LINK -- One of the following three is required. The framework # looks for them in this order. def link ( self , obj ): """ # Takes the object returned by get_object() and returns the URL # of the HTML ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
データベースのマイグレーション・オペレーション 12648
データベースのマイグレーション・オペレーション これらの マイグレーションオペレーション は全て django.contrib.postgres.operations モジュールから利用できます。 マイグレーションを使って拡張機能を作成する マイグレーションファイルを使用して、デー ... ngo 6.0. The optional hints argument will be passed as **hints to the allow_migrate() method of database routers to assist them in making routing decisions . BloomExtension class BloomExtension ( hints = None ) [ソース] bloom 拡張機能をインストールし ... ngo 6.0. The optional hints argument will be passed as **hints to the allow_migrate() method of database routers to assist them in making routing decisions . BtreeGinExtension class BtreeGinExtension ( hints = None ) [ソース] btree_gin 拡張機能をイン ... ngo 6.0. The optional hints argument will be passed as **hints to the allow_migrate() method of database routers to assist them in making routing decisions . BtreeGistExtension class BtreeGistExtension ( hints = None ) [ソース] btree_gist 拡張機能をイ ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/operations.html
Django 1.8 リリースノート 9401
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... I for Model._meta , providing an officially supported way to retrieve fields and filter fields based on their attributes . The Model._meta object has been part of Django since the days of pre-0.96 "Magic Removal" -- it just wasn't an official, stable ... at the class level using transactions and savepoints. Database backends which do not support transactions, like MySQL with the MyISAM storage engine, will still be able to run these tests but won't benefit from the improvements. Tests are now run wit ... Case . マイナーな機能 django.contrib.admin ModelAdmin now has a has_module_permission() method to allow limiting access to the module on the admin index page. InlineModelAdmin now has an attribute show_change_link that supports showing a link to an i ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 1.7 リリースノート 8749
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... ort for schema migrations. It allows models to be updated, changed, and deleted by creating migration files that represent the model changes and which can be run on any development, staging or production database. Migrations are covered in their own ... as before. A new makemigrations command provides an easy way to autodetect changes to your models and make migrations for them. django.db.models.signals.pre_syncdb and django.db.models.signals.post_syncdb have been deprecated, to be replaced by pre_ ... uggest you create a migration for your application and define a RunPython or RunSQL operation in the operations section of the migration. Test rollback behavior is different for apps with migrations; in particular, Django will no longer emulate rollb ...
https://man.mtool.work/django/6.1/releases/1.7.html
How to release Django 8585
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... messages. By using this app for preparing security issue metadata, your peer releasers can check your entries and consult them again in the future. See example checklist . Prerequisites You'll need a few things before getting started. If this is you ... Reserve: $ cve --interactive reserve <quantity> Generate the relevant (private) patch(es) using git format-patch , one for the main branch and one for each stable branch being patched. A week before a security release Send out pre-notification exactl ... scripts/manage_translations.py fetch -v 1 --since = <some date> To determine a good value for --since , check the date of the most recent commit with wording similar to Updated translations from Transifex and use a date a few days prior. This comman ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
Coding style 8422
Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re ... d an appropriate error message will be displayed. If the error was with black or isort then the tool will go ahead and fix them for you. Review the changes and re-stage for commit if you are happy with them. Python style All files should be formatted ... , or str.format() as appropriate, with the goal of maximizing code readability. Final judgments of readability are left to the Merger's discretion. As a guide, f-strings should use only plain variable and property access, with prior local variable as ... es is defined for a given model field, define each choice as a mapping, with an all-uppercase name as a class attribute on the model. Example: class MyModel ( models . Model ): DIRECTION_UP = "U" DIRECTION_DOWN = "D" DIRECTION_CHOICES = { DIRECTION_U ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 6.1 release notes 8096
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! 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 6.0 or earlier. We've begun the ... from the database when an unfetched field is accessed. Django provides three fetch modes: FETCH_ONE , the default, fetches the missing field for the current instance only. This mode represents Django's existing behavior. FETCH_PEERS fetches a missing ... ey are thus more efficient than the existing Python-level options, as Django does not need to load objects before deleting them. As a consequence, the DB_CASCADE option does not trigger the pre_delete or post_delete signals. Mailers The new MAILERS s ... mprove accessibility of the admin change forms: Form fields are now shown below their respective labels instead of next to them. Help text is now shown after the field label and before the field input. Validation errors are now shown after the help t ...
https://man.mtool.work/django/6.1/releases/6.1.html
コンテンツセキュリティポリシー 7947
コンテンツセキュリティポリシー New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection attacks by restricting the sources from which content can be loaded. It plays an important role ... gy . For configuration instructions in a Django project, see the Using CSP documentation. For an HTTP guide about CSP, see the MDN Guide on CSP . 概要 The Content-Security-Policy specification defines two complementary headers: Content-Security-Polic ... LY on its own to evaluate a new policy without disrupting site behavior. This mode does not block violations, it only logs them. It's useful for testing and monitoring, but provides no protection against active threats. Use both to maintain an enforc ... ve. Django does not provide built-in functionality to receive, store, or process violation reports. To collect and analyze them, you must implement your own reporting endpoint or integrate with a third-party monitoring service. CSP 定数 Django provid ...
https://man.mtool.work/django/6.1/ref/csp.html
Django 1.6 リリースノート 7947
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... X, 2.7.X, 3.2.X, and 3.3.X). Django 1.6 will be the final release series to support Python 2.6; beginning with Django 1.7, the minimum supported Python version will be 2.7. Python 3.4 is not supported, but support will be added in Django 1.7. Django ... flexibility in the location of tests. The previous runner ( django.test.simple.DjangoTestSuiteRunner ) found tests only in the models.py and tests.py modules of a Python package in INSTALLED_APPS . The new runner ( django.test.runner.DiscoverRunner ) ... guration (currently oriented at settings) is compatible with the current version of Django. Model.save() algorithm changed The Model.save() method now tries to directly UPDATE the database if the instance has a primary key value. Previously SELECT wa ...
https://man.mtool.work/django/6.1/releases/1.6.html
Fetch modes 7947
Fetch modes New in Django 6.1. When accessing model fields that were not loaded as part of the original query, Django will fetch that field's data from the database. You can customize the behavior of this fetching with a fetch mode , making ... ェネリックリレーション(汎用リレーション) Django copies the fetch mode of an instance to any related objects it fetches, so the mode applies to a whole tree of relationships, not just the top-level model in the initial QuerySet . This copying is also ... m django.db import models and refer to the fetch modes as models.<mode> . Django provides three fetch modes. We'll explain them below using these models: from django.db import models class Author ( models . Model ): ... class Book ( models . Model ): ... oks : print ( book . author . name ) …where books is a QuerySet of Book instances using some fetch mode. FETCH_ONE Fetches the missing field for the current instance only. This is the default mode. Using FETCH_ONE for the above example would use: 1 q ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
PREV 1 2 3 4 5 6 7 8 9 NEXT