per page, with , order by , clip by
Results of 1 - 7 of about 7 for docstring (0.003 sec.)
Django admin ドキュメントジェネレータ 13341
Django admin ドキュメントジェネレータ Django の admindocs アプリは、 INSTALLED_APPS にある任意のアプリのモデル、ビュー、テンプレートタグ、 テンプレートフィルタの docstring からドキュメントを取り出し、 Django admin から利用できるようにします ... メント" リンクをクリックすれば、ドキュメントを読むことができます。 ドキュメンテーション・ヘルパー 以下の特別なマークアップをdocstringで使用することで、他のコンポーネントへのハイパーリンクを簡単に作成できます: Django コンポーネント reStructuredText のロール ... す。他のモデルとのリレーションはハイパーリンクとして表示されます。説明文は、フィールドの help_text 属性や、モデルメソッドの docstring から取得されます。 役に立つドキュメントを持ったモデルは次のようなものです: class BlogEntry ( models . Model ): """ Stores ... ト内の各URLは admindocs ページに個別のエントリーがあり、指定したURLをクリックすると対応するビューが表示されます。ビュー関数のdocstringに書いておくと便利な内容は以下のようなものです: ビューが何をするのかについての短い説明。 context 、あるいはビューのテンプレー ...
https://man.mtool.work/django/6.1/ref/contrib/admin/admindocs.html
Working with Git and GitHub 9542
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 ... eps. You can also use the "edit" option in rebase. This way you can change a single commit, for example to fix a typo in a docstring: git rebase -i HEAD~3 # Choose edit, pick, pick for the commits # Now you are able to rework the commit (use git add norma ... essage along the lines of: Made changes asked in review by <reviewer>. - Fixed whitespace errors in foobar. - Reworded the docstring of bar(). Finally, push your work back to your GitHub repository. Since you didn't touch the public commits during the reb ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
Coding style 8397
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 ... ine 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. String variable interpolation may use %- ... oters() , not poll.getUniqueVoters() ). Use InitialCaps for class names (or for factory functions that return classes). In docstrings, follow the style of existing docstrings and PEP 257 . In tests, use assertRaisesMessage() and assertWarnsMessage() inste ... assertTrue() and assertFalse() , so you can check the actual boolean value, not the truthiness of the expression. In test docstrings, state the expected behavior that each test demonstrates. Don't include preambles such as "Tests that" or "Ensures that". ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 3.1 リリースノート 8215
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... gument for Signal is deprecated. If you rely on this argument as documentation, you can move the text to a code comment or docstring. Calling django.utils.crypto.get_random_string() without a length argument is deprecated. The list message for ModelMultip ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 5.2 リリースノート 8215
Django 5.2 リリースノート 2025年4月2日 Django 5.2 へようこそ! このリリースノートでは、 バージョン 5.2 の新機能 と、Django 5.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ードを追加できるようになりました。 URLField の値がリンクとしてレンダリングされるようになりました。 django.contrib.admindocs docstring 内のコンポーネントへのリンクは、 :role:`リンクテキスト <link>` という形式を用いることで、カスタムのリンクテキストをサポート ...
https://man.mtool.work/django/6.1/releases/5.2.html
カスタムのモデルフィールドを作成する 8015
カスタムのモデルフィールドを作成する はじめに モデルリファレンス ドキュメントでは、Djangoの標準フィールドクラスである、 CharField や、 DateField などの使い方を説明しています。多くの場合、これらのクラスがあれば十分です。ただし、Djangoのバージ ... ものように、フィールドタイプのドキュメントを作成し、それがどんなものかをユーザがわかるようにしましょう。開発者にとって便利な docstring を提供するだけでなく、 django.contrib.admindocs アプリケーションを通して、管理者アプリのユーザにフィールドタイプの短い説明 ...
https://man.mtool.work/django/6.1/howto/custom-model-fields.html
django-admin と manage.py 7833
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... テンプレート変数も置き換えます。たとえば、 Python ファイルの 1 つに、テンプレートレンダリングに関連する特定の機能を説明する docstring が含まれていた場合、間違った結果を生むかもしれません。 この問題を回避するために、テンプレートタグ templatetag を使ってテン ...
https://man.mtool.work/django/6.1/ref/django-admin.html
PREV 1 NEXT