... when writing JavaScript code for inclusion in Django. Code style ¶ Please conform to the indentation style dictated in the .editorconfig file. We recom ... ns. When naming variables, use camelCase instead of underscore_case . Different JavaScript files sometimes use a different code style. Please try to conform to the code style of each file. Use the Biome code linter to check your code for bugs and sty ... l be run by the pre-commit hooks. We also recommended installing a Biome plugin in your text editor. Where possible, write code that will work even if the page structure is later changed with JavaScript. For instance, when binding a click handler, us ... ... when writing JavaScript code for inclusion in Django. Code style ¶ Please conform to the indentation style dictated in the .editorconfig file. We recom ... ns. When naming variables, use camelCase instead of underscore_case . Different JavaScript files sometimes use a different code style. Please try to conform to the code style of each file. Use the Biome code linter to check your code for bugs and sty ... l be run by the pre-commit hooks. We also recommended installing a Biome plugin in your text editor. Where possible, write code that will work even if the page structure is later changed with JavaScript. For instance, when binding a click handler, us ... ... aging pre-commit hooks. These hooks help to identify simple issues before committing code for review. By checking for these issues before code review it allows the reviewer to focus on the change itself, and it c ... s that we don't consider as gross violations. Remember that PEP 8 is only a guide, so respect the style of the surrounding code as a primary goal. An exception to PEP 8 is our rules on line lengths. We allow up to 88 characters in code, as this is th ... ring variable interpolation may use %-formatting , f-strings , 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 pla ... ... のドキュメントはコードレポジトリの構成とそこでの作業方法と調査方法について説明しています。 大局的な概要 ¶ 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 ... s 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 browse online. The Git repository includes several branches : main contains the mai ... n in-development code which will become the next packaged release of Django. This is where most development activity is focused. stable/A.B.x ar ... ... のドキュメントはコードレポジトリの構成とそこでの作業方法と調査方法について説明しています。 大局的な概要 ¶ 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 ... s 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 browse online. The Git repository includes several branches : main contains the mai ... n in-development code which will become the next packaged release of Django. This is where most development activity is focused. stable/A.B.x ar ... ... aging pre-commit hooks. These hooks help to identify simple issues before committing code for review. By checking for these issues before code review it allows the reviewer to focus on the change itself, and it c ... s that we don't consider as gross violations. Remember that PEP 8 is only a guide, so respect the style of the surrounding code as a primary goal. An exception to PEP 8 is our rules on line lengths. We allow up to 88 characters in code, as this is th ... ring variable interpolation may use %-formatting , f-strings , 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 pla ... ... nger monopolized and somebody else can claim it. If you've claimed a ticket and it's taking a long time (days or weeks) to code, keep everybody updated by posting comments on the ticket. If you don't provide regular updates, and you don't respond to ... anges ready. Contribution style ¶ Make sure that any contribution you do fulfills at least the following requirements: The code required to fix a problem or add a feature is an essential part of a solution, but it is not the only part. A good fix sho ... clude a regression test to validate the behavior that has been fixed and to prevent the problem from arising again. If the code adds a new feature, or modifies the behavior of an existing feature, the change should also contain documentation. When yo ... ... nger monopolized and somebody else can claim it. If you've claimed a ticket and it's taking a long time (days or weeks) to code, keep everybody updated by posting comments on the ticket. If you don't provide regular updates, and you don't respond to ... anges ready. Contribution style ¶ Make sure that any contribution you do fulfills at least the following requirements: The code required to fix a problem or add a feature is an essential part of a solution, but it is not the only part. A good fix sho ... clude a regression test to validate the behavior that has been fixed and to prevent the problem from arising again. If the code adds a new feature, or modifies the behavior of an existing feature, the change should also contain documentation. When yo ... ... omewhat; authors of custom template tags that need to store state (e.g. custom control flow tags) should ensure that their code follows the new rules for stateful template tags The user_passes_test() , login_required() , and permission_required() , d ... developed your own custom template loaders we suggest to consider porting them to a class-based implementation because the code for backwards compatibility with function-based loaders starts its deprecation process in Django 1.2 and will be removed i ... scription of the API these loader classes must implement in the template API reference and you can also examine the source code of the loaders shipped with Django. Natural keys in fixtures ¶ Fixtures can now refer to remote objects using ナチュラルキ ... ... omewhat; authors of custom template tags that need to store state (e.g. custom control flow tags) should ensure that their code follows the new rules for stateful template tags The user_passes_test() , login_required() , and permission_required() , d ... developed your own custom template loaders we suggest to consider porting them to a class-based implementation because the code for backwards compatibility with function-based loaders starts its deprecation process in Django 1.2 and will be removed i ... scription of the API these loader classes must implement in the template API reference and you can also examine the source code of the loaders shipped with Django. Natural keys in fixtures ¶ Fixtures can now refer to remote objects using ナチュラルキ ... 2026年10月08日