Results of 11 - 20 of about 46 for year (0.040 sec.)
- Conditional Expressions — Django 4.0.6 ドキュメント 8207
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
= date . today () - timedelta ( days = 30 ) >>> a_year_ago = date . today () - timedelta ( days = 365 ) > ...
iscount = Case ( ... When ( registered_on__lte = a_year_ago , then = Value ( '10%' )), ... When ( register ...
o and platinum clients that registered more than a year ago: >>> a_month_ago = date . today () - timedelta ...
( days = 30 ) >>> a_year_ago = date . today () - timedelta ( days = 365 ) > ...
-
https://man.plustar.jp/django/ref/models/conditional-expressions.html
- [similar]
- タイムゾーン — Django 4.0.6 ドキュメント 8039
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
al time, you're likely to encounter errors twice a year, when the transitions happen. This probably doesn' ...
or under bill your customers by one hour, twice a year, every year. The solution to this problem is to us ...
ubtle bugs that will bite you only once or twice a year. For these reasons, time zone support is enabled b ...
cases. For example, you can't always subtract one year directly from a given date: >>> import datetime >> ...
-
https://man.plustar.jp/django/topics/i18n/timezones.html
- [similar]
- Django 1.5 release notes — Django 4.0.6 ドキュメント 7887
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
d or classmethod on the abstract class. Context in year archive class-based views ¶ For consistency with t ...
he other date-based generic views, YearArchiveView now passes year in the context as a dat ...
ime.date rather than a string. If you are using {{ year }} in your templates, you must replace it with {{ ...
year|date:"Y" }} . next_year and previous_year were also added in the context. ...
-
https://man.plustar.jp/django/releases/1.5.html
- [similar]
- はじめての Django アプリ作成、その2 — Django 4.0.6 ドキュメント 7628
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
up?>]> # Get the question that was published this year. >>> from django.utils import timezone >>> current ...
_year = timezone . now () . year >>> Question . objects ...
. get ( pub_date__year = current_year ) <Question: What's up?> # Request ...
Choices for any question whose pub_date is in this year # (reusing the 'current_year' variable we created ...
-
https://man.plustar.jp/django/intro/tutorial02.html
- [similar]
- モデルフィールドリファレンス — Django 4.0.6 ドキュメント 7460
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
す。2 番目の要素は人間が読むための名前です。例えば: YEAR_IN_SCHOOL_CHOICES = [ ( 'FR' , 'Freshman' ), ( 'SO ...
= 'SO' JUNIOR = 'JR' SENIOR = 'SR' GRADUATE = 'GR' YEAR_IN_SCHOOL_CHOICES = [ ( FRESHMAN , 'Freshman' ), ( ...
SENIOR , 'Senior' ), ( GRADUATE , 'Graduate' ), ] year_in_school = models . CharField ( max_length = 2 , ...
choices = YEAR_IN_SCHOOL_CHOICES , default = FRESHMAN , ) def is_ ...
-
https://man.plustar.jp/django/ref/models/fields.html
- [similar]
- Django 1.4 documentation 7353
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
s ( '' , ( r '^articles/(\d {4} )/$' , 'news.views.year_archive' ), ( r '^articles/(\d {4} )/(\d {2} )/$' ...
したデータでテンプレートをレンダリングします。 上の year_archive のビューを例に示しましょう: def year_archi ...
ve ( request , year ): a_list = Article . objects . filter ( pub_date_ ...
_year = year ) return render_to_response ( 'news/year_ar ...
-
https://man.plustar.jp/django/contents.html
- [similar]
- Django 2.0 リリースノート — Django 4.0.6 ドキュメント 7246
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
のリリースの Django の例は、 url ( r '^articles/(?P<year>[0-9] {4} )/$' , views . year_archive ), 次のように ...
書き換えられます。 path ( 'articles/<int:year>/' , views . year_archive ), 新しい構文では、URL パ ...
強制がサポートされます。この例では、ビューが受け取る year キーワード引数は、文字列ではなく整数になります。ま ...
ッチする URL の制約も少し緩和されています。たとえば、year として 10000 を指定したとしてもマッチします。正規表 ...
-
https://man.plustar.jp/django/releases/2.0.html
- [similar]
- 設定 — Django 4.0.6 ドキュメント 7139
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ry' : lambda o : "/stories/ %s / %s /" % ( o . pub_year , o . slug ), } The model name used in this settin ...
RF_COOKIE_AGE ¶ Default: 31449600 (approximately 1 year, in seconds) The age of CSRF cookies, in seconds. ...
THOUSAND_SEPARATOR TIME_FORMAT TIME_INPUT_FORMATS YEAR_MONTH_FORMAT IGNORABLE_404_URLS ¶ デフォルト値: [] ...
また、 DATE_FORMAT , DATETIME_FORMAT , TIME_FORMAT , YEAR_MONTH_FORMAT も参照してください。 NUMBER_GROUPING ...
-
https://man.plustar.jp/django/ref/settings.html
- [similar]
- Lookup API reference — Django 4.0.6 ドキュメント 6987
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
n the class. For example DateField.register_lookup(YearExact) will register YearExact lookup on DateField ...
nt field transformations. A prominent example is __year that transforms a DateField into a IntegerField . ...
sion is <expression>__<transformation> (e.g. date__year ). This class follows the Query Expression API , w ...
-
https://man.plustar.jp/django/ref/models/lookups.html
- [similar]
- 組み込みタグとフィルタ — Django 4.0.6 ドキュメント 6987
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
したければ以下のようにします: < h1 > Archive for {{ year }} </ h1 > {% for date in days %} {% ifchanged %} ...
You can also use the syntax {% now "Y" as current_year %} to store the output (as a string) inside a vari ...
blocktranslate for example: {% now "Y" as current_year %} {% blocktranslate %} Copyright {{ current_year ...
'Feb.' , 'March' , 'May' t その月の日数。 28 ~ 31 Year y Year, 2 digits with leading zeros. '00' to '99' ...
-
https://man.plustar.jp/django/ref/templates/builtins.html
- [similar]