per page, with , order by , clip by
Results of 1 - 10 of about 27 for days (0.003 sec.)
はじめての Django アプリ作成、その 5 13578
はじめての Django アプリ作成、その 5 このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作ってみましょう。 困ったときは: このチュートリアルの実行に問題がある場合は、FAQ の Getting Hel ... anage.py shell >>> import datetime >>> from django.utils import timezone >>> # create a Question instance with pub_date 30 days in the future >>> future_question = Question ( pub_date = timezone . now () + datetime . timedelta ( days = 30 )) >>> # wa ... ently() returns False for questions whose pub_date is in the future. """ time = timezone . now () + datetime . timedelta ( days = 30 ) future_question = Question ( pub_date = time ) self . assertIs ( future_question . was_published_recently (), False ... ましょう。 polls/models.py def was_published_recently ( self ): now = timezone . now () return now - datetime . timedelta ( days = 1 ) <= self . pub_date <= now そして、もう一度テストを実行します。 Creating test database for alias 'default'... System ...
https://man.mtool.work/django/6.1/intro/tutorial05.html
条件式 13413
条件式 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 ... . create ( ... name = "Jane Doe" , ... account_type = Client . REGULAR , ... registered_on = date . today () - timedelta ( days = 36 ), ... ) >>> Client . objects . create ( ... name = "James Smith" , ... account_type = Client . GOLD , ... registered ... _on = date . today () - timedelta ( days = 5 ), ... ) >>> Client . objects . create ( ... name = "Jack Black" , ... account_type = Client . PLATINUM , ... register ... ed_on = date . today () - timedelta ( days = 10 * 365 ), ... ) >>> # Get the discount for each Client based on the account type >>> Client . objects . annotate ( ... ...
https://man.mtool.work/django/6.1/ref/models/conditional-expressions.html
Coding style 9874
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 ... er . name } " f "hello { self . user . name } " # Disallowed f "hello { get_user () } " f "you are { user . age * 365.25 } days old" # Allowed with local variable assignment user = get_user () f "hello { user } " user_days_old = user . age * 365.25 f ... "you are { user_days_old } days old" f-strings should not be used for any string that may require translation, including error and logging mess ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
How to release Django 9414
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... uff starts about a week before the release; most of it can be done any time leading up to the actual release. 10 (or more) days before a security release Reserve one CVE ID per security issue as follows. (Or, if you lack CNA credentials, email cna@dj ... ted at * Confirmed at (usually date CVE reserved) * CWE Problem Type * CAPEC Impact Type * CVSS (4.0) Score & Vector A few days before any release As the release approaches, watch Trac to make sure no release blockers are left for the upcoming releas ... 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 command takes some time to run. When done, carefully inspect the output for potential errors and/or warnings. ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
Django 1.2.3 リリースノート 9414
Django 1.2.3 リリースノート Django 1.2.3 fixed a couple of release problems in the 1.2.2 release and was released two days after 1.2.2. This release corrects the following problems: The patch applied for the security issue covered in Django ...
https://man.mtool.work/django/6.1/releases/1.2.3.html
Django 3.1 リリースノート 8475
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... number of seconds a password reset link is valid for. This is encouraged instead of the deprecated PASSWORD_RESET_TIMEOUT_DAYS setting, which will be removed in Django 4.0. The password reset mechanism now uses the SHA-256 hashing algorithm. Support ... sh commands now include SQL to reset sequences on SQLite. モデル The new ExtractIsoWeekDay function extracts ISO-8601 week days from DateField and DateTimeField , and the new iso_week_day lookup allows querying by an ISO-8601 day of week. QuerySet.ex ... Field s, KeyTransform , and KeyTextTransform can be used on all supported database backends. その他 PASSWORD_RESET_TIMEOUT_DAYS setting is deprecated in favor of PASSWORD_RESET_TIMEOUT . The undocumented usage of the isnull lookup with non-boolean va ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 0.95 リリースノート 8015
Django 0.95 リリースノート Django 0.95 へようこそ! このリリースでは、2006年1月にリリースされた 0.91 から Django の開発が大幅に進んでいます。このリリースのすべての変更点を詳細に書くことはできませんが、以下にその要点を列挙します。 適合性 (sui ... ed a number of constraints in the way Django code had to be written that were a consequence of decisions made in the early days of Django, prior to its open-source release. It's now possible to write more natural, Pythonic code that works as expected ...
https://man.mtool.work/django/6.1/releases/0.95.html
Django のセキュリティポリシー 7867
Django のセキュリティポリシー Django の開発チームは、セキュリティ関連の問題の責任ある報告と開示に強くコミットしています。そのため、私たちはその理想に従い、公式の Django ディストリビューション、およびサードパーティのディストリビューションにタ ... 've submitted an issue via email, you should receive an acknowledgment from a member of the security team within 3 working days. After that, the security team will begin their analysis. Depending on the action to be taken, you may receive followup em ... ecurity team unless you discover new, relevant information. All reports aim to be resolved within the industry-standard 90 days. Confirmed vulnerabilities with a high severity level will be addressed promptly. 暗号化されたレポートの送信 暗号化されたメ ...
https://man.mtool.work/django/6.1/internals/security.html
はじめての Django アプリ作成、その 7 7867
はじめての Django アプリ作成、その 7 このチュートリアルは チュートリアル その6 の続きです。ここでは、引き続き Web 投票アプリケーションの開発を続け、 チュートリアル その2 で少し触れた、Django が 自動生成する管理サイトのカスタマイズに焦点を当 ... "Published recently?" , ) def was_published_recently ( self ): now = timezone . now () return now - datetime . timedelta ( days = 1 ) <= self . pub_date <= now デコレータで設定できるプロパティに関する詳しい情報は、 list_display を参照してください。 p ... で、Django はこのフィールドにふさわしいフィルタオプションが、「すべての期間 ("Any date")」「今日 ("Today")」「今週 ("Past 7 days")」「今月 ("This month")」であることを知っているのです。 いい感じに体裁が整ってきました。今度は検索機能を追加してみましょう ...
https://man.mtool.work/django/6.1/intro/tutorial07.html
django.contrib.humanize 7867
django.contrib.humanize humanize は、データに「人間くささ(human touch)」を与えるための Django テンプレートフィルタセットです。 これらのフィルタを有効にするには、 INSTALLED_APPS 設定に 'django.contrib.humanize' を加えます。インストール後、 ... :29 は 2 hours from now になります。 18 Feb 2007 16:31:29 は 1 day from now になります。 26 Feb 2007 18:31:29 は 1 week, 2 days from now になります。 ordinal 整数を序数形式の文字列に変換します。 例: 1 は 1st になります。 2 は 2nd になります。 3 は 3r ...
https://man.mtool.work/django/6.1/ref/contrib/humanize.html
PREV 1 2 3 NEXT