per page, with , order by , clip by
Results of 1 - 10 of about 20 for lines (0.003 sec.)
テンプレートのバックエンドをカスタマイズする 14529
テンプレートのバックエンドをカスタマイズする カスタムのバックエンド ここでは、他のテンプレートシステムを使用するために、カスタムテンプレートバックエンドを実装する方法を説明します。テンプレートバックエンドは django.template.backends.base.Bas ... きます。この属性は以下の値を持つ dict です: 'name' : 例外が発生したテンプレートの名前。 'message' : 例外メッセージ。 'source_lines' : 例外が発生した行の前後の行。これは文脈のためのものなので、20行以上にすべきではありません。 'line' : 例外が発生した行番号 ... の内容。 'during' : エラーを発生させたトークン。 'after' : エラーを発生させたトークンの後のエラー行の内容。 'total' : source_lines の行数。 'top' : source_lines が始まる行番号。 'bottom' : source_lines が終了する行番号。 上記のテンプレートエラーが発生し ... late_debug は次のようになります: { "name" : "/path/to/template.html" , "message" : "Invalid block tag: 'syntax'" , "source_lines" : [ ( 1 , "some \n " ), ( 2 , "lines \n " ), ( 3 , "before \n " ), ( 4 , "Hello { % s yntax error %} {{ world }} \n " ), ...
https://man.mtool.work/django/6.1/howto/custom-template-backend.html
Unit tests 11011
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... ns code coverage analysis on pull requests and posts a comment with a diff coverage report. This helps reviewers see which lines in the changed code are covered by tests. What the coverage report shows: The coverage report posted on pull requests uses ... diff-cover to analyze only the lines that were changed or added in the PR. It shows: Lines that are covered by tests (✓) Lines that are not covered by tests (✗ ... ) Lines that cannot be covered (e.g., comments, blank lines) Important limitations: When reviewing coverage reports on pull reques ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Coding style 10468
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 ... mance, readability, and maintainability while reducing errors. Imports Use isort to automate import sorting using the guidelines below. Quick start: /  $ python -m pip install "isort >= 7.0.0" $ isort . ...\> py -m pip install "isort >= 7.0.0" ...\ ... > isort . This runs isort recursively from your current directory, modifying any files that don't conform to the guidelines. If you need to have imports out of order (to avoid a circular import, for example) use a comment like this: import module ... roups: future, standard library, third-party libraries, other Django components, local Django component, try/excepts. Sort lines in each group alphabetically by the full module name. Place all import module statements before from module import objects ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.0 リリースノート 9057
Django 1.0 リリースノート Django 1.0 へようこそ! We've been looking forward to this moment for over three years, and it's finally here. Django 1.0 represents the largest milestone in Django's development to date: a web framework that a grou ... Django 0.96, we've made over 4,000 code commits, fixed more than 2,000 bugs, and edited, added, or removed around 350,000 lines of code. We've also added 40,000 lines of new documentation, and greatly improved what was already there. In fact, new doc ...
https://man.mtool.work/django/6.1/releases/1.0.html
Django 6.0.5 release notes 9057
Django 6.0.5 release notes May 5, 2026 Django 6.0.5 fixes three security issues with severity "low" and several bugs in 6.0.4. CVE-2026-5766: Potential denial-of-service vulnerability in ASGI requests via file upload limit bypass ASGI reque ... when overriding the pagination block ( #37029 ). Fixed a bug in Django 6.0 where deprecation warnings incorrectly skipped lines from third-party packages prefixed with "django" ( #37067 ). ...
https://man.mtool.work/django/6.1/releases/6.0.5.html
コードのコミット 8360
コードのコミット This section is addressed to the mergers and to anyone interested in knowing how code gets committed into Django. The コミットガイドライン apply to all contributors, with or without commit rights. If you're a community memb ... 、コミュニティを巻き込むこと、仕事を終わらせること、そして使えるコミット履歴を持つことです。 コミットガイドライン These guidelines apply to all commits to Django's Git repository, whether submitted by a contributor via a pull request or landed directly ... SS API." ("-ing" form) Incorrect: "Fixed Unicode bug in RSS API" (missing trailing period) The commit message should be in lines of 72 chars maximum. There should be a subject line, separated by a blank line and then paragraphs of 72 char lines. The l ... as appropriate, including anyone whose earlier work the change builds on. 例えば: Fixed #18307 -- Added git workflow guidelines. Refactored the Django's documentation to remove mentions of SVN specific tasks. Added guidelines of how to use Git, GitHu ...
https://man.mtool.work/django/6.1/internals/contributing/committing-code.html
新しいコントリビューターへのアドバイス 8004
新しいコントリビューターへのアドバイス 新しいコントリビューターで、何をするべきかわかりませんか? 助けたいと思っているのにどこから手を付ければいいのかわかりませんか? このセクションはあなたのためにあります。 立ち上げる! Django へのコントリビュ ... or License Agreement The code that you write belongs to you or your employer. If your contribution is more than one or two lines of code, you have the option to sign the CLA . See the Contributor License Agreement FAQ for a more thorough explanation. ...
https://man.mtool.work/django/6.1/internals/contributing/new-contributors.html
Working with Git and GitHub 8004
Working with Git and GitHub This section explains how the community can contribute code to Django via pull requests. If you're interested in how mergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a ... xxxx branch. Make some changes and commit them: git commit When writing the commit message, follow the commit message guidelines to ease the work of the merger. If you're uncomfortable with English, try at least to describe precisely what the commit d ... essages for each commit: a summary line and then paragraphs wrapped at 72 characters thereafter -- see the committing guidelines for more details, documentation and tests, if needed -- actually tests are always needed, except for documentation changes ... two commits, you would run: git rebase -i HEAD~2 Squash the second commit into the first. Write a commit message along the lines of: Made changes asked in review by <reviewer>. - Fixed whitespace errors in foobar. - Reworded the docstring of bar(). Fi ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
ドキュメントを書く 8004
ドキュメントを書く 私たちはドキュメントの一貫性と読みやすさを重要視しています。結局のところ、Django はジャーナリズムの環境で作られました!ですから、私たちはコードを扱うようにドキュメントを扱います。できるだけ頻繁に改善することを目指しています ... fix the indicated issue (for example, remove trailing whitespace, adjust backticks, or replace tabs with spaces). For long lines consider wrapping text onto new lines or breaking long inline links into named references. The custom line length check sh ...
https://man.mtool.work/django/6.1/internals/contributing/writing-documentation.h...
アップロードファイルとアップロードハンドラ 7834
アップロードファイルとアップロードハンドラ アップロードファイル class UploadedFile [ソース] ファイルアップロード中、実際のファイルデータは request.FILES に保存されます。この辞書の各エントリーは UploadedFile オブジェクト(またはそのサブクラス ... ファイルをイテレートすることで、ファイルを一行ずつ読むことができます: for line in uploadedfile : do_something_with ( line ) Lines are split using universal newlines . The following are recognized as ending a line: the Unix end-of-line convention '\n' , ...
https://man.mtool.work/django/6.1/ref/files/uploads.html
PREV 1 2 NEXT