per page, with , order by , clip by
Results of 1 - 10 of about 37 for future (0.004 sec.)
ジェネリック日付ビュー 13465
ジェネリック日付ビュー 日付ベースのジェネリックビュー ( django.views.generic.dates 内で提供されています) は、日付ベースのデータのために、ドリルダウンページを描画するためのビューです。 注釈 このページの例のいくつかは、 myapp/models.py 内で下 ... w class ArchiveIndexView [ソース] "最新の"オブジェクトを、日付によって表示するトップレベルのインデックスページです。 allow_future を True にセットしない限り、 未来 の日付のオブジェクトは含まれません。 継承元 (MRO) django.views.generic.list.MultipleObje ... す。 YearArchiveView class YearArchiveView [ソース] 与えられた年の中で有効な月を表示する、年次のアーカイブページです。 allow_future を True にセットしない限り、 未来 の日付を伴うオブジェクトは表示されません。 継承元 (MRO) django.views.generic.list.Multip ... 可能なオブジェクトを持つ全ての月を含みます。 year : 与えられた年を表す date オブジェクト。 next_year : allow_empty と allow_future に従って、次の年の最初の日を表す date オブジェクト。 previous_year : date オブジェクト。 allow_empty と allow_future に従い ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-date-based.html
はじめての Django アプリ作成、その 5 12076
はじめての Django アプリ作成、その 5 このチュートリアルは チュートリアル 4 の続きです。Web 投票アプリケーションが完成したので、今度は自動テストを作ってみましょう。 困ったときは: このチュートリアルの実行に問題がある場合は、FAQ の Getting Hel ... ll >>> 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 )) >>> # was it published ... recently? >>> future_question . was_published_recently () True 将来のことは「最近(recent)」ではないため、これは明らかに間違いです。 バグをあぶ ... s import timezone from .models import Question class QuestionModelTests ( TestCase ): def test_was_published_recently_with_future_question ( self ): """ was_published_recently() returns False for questions whose pub_date is in the future. """ time = ti ...
https://man.mtool.work/django/6.1/intro/tutorial05.html
クラスベースのジェネリックビュー: フラットインデックス 12076
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... ースのビュー ArchiveIndexView class ArchiveIndexView 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] date_field [ get_date_field() ] extr ... nse() setup() YearArchiveView class YearArchiveView 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] date_field [ get_date_field() ] extr ... e() setup() MonthArchiveView class MonthArchiveView 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] date_field [ get_date_field() ] extr ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
日付ベースのミックスイン (mixin) 11192
日付ベースのミックスイン (mixin) 注釈 これらのミックスインに含まれるすべての日付フォーマット属性は strftime() フォーマット文字列を使用します。 now テンプレートタグのフォーマット文字列は互換性がないので使用しないでください。 YearMixin class ... _next_year ( date ) [ソース] 指定した日付の翌年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 get_previous_year ( date ) [ソース] 指定した日付の前の年 ... の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 MonthMixin class MonthMixin [ソース] 日付の「月」コンポー ... 。 get_next_month ( date ) [ソース] 指定した日付の翌月初日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外が発生したりします。 get_previous_month ( date ) [ソース] 指定した日付の前の月の ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-date-based.html
Django 0.96 リリースノート 8666
Django 0.96 リリースノート Django 0.96 へようこそ! The primary goal for 0.96 is a cleanup and stabilization of the features introduced in 0.95. There have been a few small backwards-incompatible changes since 0.95, but the upgrade process s ... ons. However, we're also releasing 0.96 now because we have a set of backwards-incompatible changes scheduled for the near future. Once completed, they will involve some code changes for application developers, so we recommend that you stick with Djang ... dered deprecated; aside from any necessary security fixes, it will not be actively maintained, and it will be removed in a future release of Django. Also, note that some features, like the new DATABASE_OPTIONS setting (see the databases documentation f ... st ), info )) Note that both syntaxes (strings and callables) are valid, and will continue to be valid for the foreseeable future. テストフレームワーク Django now includes a test framework so you can start transmuting fear into boredom (with apologies ...
https://man.mtool.work/django/6.1/releases/0.96.html
Django 1.3 リリースノート 8066
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... . Django 1.3 marks the start of the process to correct this historical accident. Django 1.3 adds a new template library -- future -- that provides alternate implementations of the url and ssi template tags. This future library implement behavior that m ... of all other variables. So, an existing template that contains: {% url sample %} should be replaced with: {% load url from future %} {% url 'sample' %} The tags implementing the old behavior have been deprecated, and in Django 1.5, the old behavior wil ... l be replaced with the new behavior. To ensure compatibility with future versions of Django, existing templates should be modified to use the new future libraries and syntax. Changes to the login ...
https://man.mtool.work/django/6.1/releases/1.3.html
Coding style 7971
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 ... (to avoid a circular import, for example) use a comment like this: import module # isort:skip Put imports in these groups: future, standard library, third-party libraries, other Django components, local Django component, try/excepts. Sort lines in each ... e the first function or class. For example (comments are for explanatory purposes only): django/contrib/admin/example.py # future from __future__ import annotations # standard library import json from itertools import chain # third-party import bcrypt ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.5 リリースノート 7892
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... be a literal name of a view, not a template variable named myview ). Django 1.3 and above introduced the {% load url from future %} syntax to bring in the corrected behavior where myview was seen as a variable. The upshot of this is that if you are no ... t using {% load url from future %} in your templates, you'll need to change tags like {% url myview %} to {% url "myview" %} . If you were using {% load u ... rl from future %} you can simply remove that line under Django 1.5 Python バージョン間の互換性 Django 1.5 requires Python 2.6.5 or above, ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 1.6 リリースノート 7892
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... y, the cycle and firstof tags render their arguments as-is. Django 1.6 starts a process to correct this inconsistency. The future template library provides alternate implementations of cycle and firstof that autoescape their inputs. If you're using the ... ou're encouraged to include the following line at the top of your templates to enable the new behavior: {% load cycle from future %} または: {% load firstof from future %} The tags implementing the old behavior have been deprecated, and in Django 1.8, ... the old behavior will be replaced with the new behavior. To ensure compatibility with future versions of Django, existing templates should be modified to use the future versions. If necessary, you can temporarily di ...
https://man.mtool.work/django/6.1/releases/1.6.html
PostgreSQL 固有のデータベース関数 7798
PostgreSQL 固有のデータベース関数 これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID class RandomUUID [ソース] バージョン 4 の UUID を返します。 使用例: >>> from django.contrib.postgres.functions ... nstead. django.db.models.functions.UUID4 is a cross-database version of this function. RandomUUID may be deprecated in the future. TransactionNow class TransactionNow [ソース] 現在のトランザクションが開始されたデータベースサーバー上の日時を返します。ト ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
PREV 1 2 3 4 NEXT