per page, with , order by , clip by
Results of 1 - 10 of about 11 for Black (0.005 sec.)
条件式 13318
条件式 Conditional expressions let you use if ... elif ... else logic within filters, annotations, aggregations, and updates. A conditional expression evaluates a series of conditions for each row of a table and returns the matching result ... OLD , ... registered_on = date . today () - timedelta ( days = 5 ), ... ) >>> Client . objects . create ( ... name = "Jack Black" , ... account_type = Client . PLATINUM , ... registered_on = date . today () - timedelta ( days = 10 * 365 ), ... ) >>> # ... ( "0%" ), ... ), ... ) . values_list ( "name" , "discount" ) <QuerySet [('Jane Doe', '0%'), ('James Smith', '5%'), ('Jack Black', '10%')]> Case() は任意の数の When() オブジェクトを引数として受け取ることができます。その他のオプションはキーワード引数で ... e ( "0%" ), ... ) ... ) . values_list ( "name" , "discount" ) <QuerySet [('Jane Doe', '5%'), ('James Smith', '0%'), ('Jack Black', '10%')]> 注釈 条件は順番に評価されるので、上の例では2番目の条件がJane DoeとJack Blackの両方にマッチしても正しい結果が得ら ...
https://man.mtool.work/django/6.1/ref/models/conditional-expressions.html
Django 4.0.3 リリースノート 10028
Django 4.0.3 リリースノート 2022年3月1日 Django 4.0.3 では、 4.0.2 におけるいくつかのバグを修正しました。また、Django のすべての Python コードが black で再度フォーマットされます。 バグ修正 Prevented, following a regression in Django 4.0.1, ...
https://man.mtool.work/django/6.1/releases/4.0.3.html
Django 4.1.3 リリースノート 10028
Django 4.1.3 リリースノート 2022年11月1日 Django 4.1.3 では、4.1.2 における1件のバグを修正し、Python 3.11 との互換性が追加されました。 バグ修正 Django 4.1 で、カスタムテンプレートを使用して startproject や startapp の管理コマンドが作成した非 ... Python ファイルが、誤って black コマンドでフォーマットされる問題が修正されました ( #34085 )。 ...
https://man.mtool.work/django/6.1/releases/4.1.3.html
Coding style 9779
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 ... s will be significantly faster. If an error is found 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 wit ... h them. Python style All files should be formatted using the black auto-formatter. This will be run by pre-commit if that is configured. The project repository includes an .editorconfig fil ... exception to PEP 8 is our rules on line lengths. We allow up to 88 characters in code, as this is the line length used by black . Documentation, comments, and docstrings should be wrapped at 79 characters. These limits are checked when flake8 is run. ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Unit tests 9015
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 ... ...\> py -m pip install tox ...\> tox By default, tox runs the test suite with the bundled test settings file for SQLite, black , blacken-docs , flake8 , isort , lint-docs , zizmor , and the documentation spelling checker. In addition to the system d ... and linked to the appropriate version of Python. A list of default environments can be seen as follows: /  $ tox -l py3 black blacken-docs flake8>=3.7.0 docs isort>=7.0.0 lint-docs zizmor>=1.19.0 ...\> tox -l py3 black blacken-docs flake8> =3.7.0 d ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
django-admin と manage.py 8517
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... migrate_label - マイグレーション名。 これらの各ロールには、以下のリストから特定の前景色と背景色を割り当てることができます: black red green yellow blue magenta cyan white これらの色はそれぞれ、以下の表示オプションを使って変更できます: bold underscore b ... 一覧が表示されます。 独自のカスタムアクションを追加したい場合は、 カスタム django-admin コマンドの作り方 を読んでください。 Black フォーマッタ startproject , startapp , optimizemigration , makemigrations , squashmigrations によって作成された Python ファ ... イルは、 black コマンドが PATH にあれば、それを使ってフォーマットされます。 もし black がグローバルにインストールされているが、現在のプロ ...
https://man.mtool.work/django/6.1/ref/django-admin.html
Django 0.95 リリースノート 8001
Django 0.95 リリースノート Django 0.95 へようこそ! このリリースでは、2006年1月にリリースされた 0.91 から Django の開発が大幅に進んでいます。このリリースのすべての変更点を詳細に書くことはできませんが、以下にその要点を列挙します。 適合性 (sui ... its open-source release. It's now possible to write more natural, Pythonic code that works as expected, and there's less "black magic" happening behind the scenes. Aside from that, another main theme of this release is a dramatic increase in usabilit ...
https://man.mtool.work/django/6.1/releases/0.95.html
ドキュメントを書く 7503
ドキュメントを書く 私たちはドキュメントの一貫性と読みやすさを重要視しています。結局のところ、Django はジャーナリズムの環境で作られました!ですから、私たちはコードを扱うようにドキュメントを扱います。できるだけ頻繁に改善することを目指しています ... い(リストはアルファベット順にしてください)。 Code block format check All Python code blocks should be formatted using the blacken-docs auto-formatter. This is automatically run by the pre-commit hook if configured. The check can also be run manually: ... provided that blacken-docs is installed, run the following command from the docs directory: /  $ make black ...\> make.bat black The format ...
https://man.mtool.work/django/6.1/internals/contributing/writing-documentation.h...
Submitting contributions 7254
Submitting contributions We're always grateful for contributions to Django's code. Indeed, bug reports with associated contributions will get fixed far more quickly than those without a solution. Typo fixes and trivial documentation changes ... unless the change is considered trivial . All code changes Does the coding style conform to our guidelines? Are there any black , blacken-docs , flake8 , isort , or zizmor errors? You can install the pre-commit hooks to automatically catch these erro ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/submitting...
ウィジェット 7254
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... forms BIRTH_YEAR_CHOICES = [ "1980" , "1981" , "1982" ] FAVORITE_COLORS_CHOICES = { "blue" : "Blue" , "green" : "Green" , "black" : "Black" , } class SimpleForm ( forms . Form ): birth_year = forms . DateField ( widget = forms . SelectDateWidget ( yea ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
PREV 1 2 NEXT