検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 111 for date (0.039 sec.)
組み込みタグとフィルタ — Django 4.0.6 ドキュメント 8248
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... に便利です。 使用例: < p > Rendered text with {{ pub_date | date :"c" }} </ p > {% comment "Optional note" % ... } < p > Commented out text with {{ create_date | date :"c" }} </ p > {% endcomment %} comment タグ ... します: < h1 > Archive for {{ year }} </ h1 > {% for date in days %} {% ifchanged %} < h3 > {{ date | date : ... "F" }} </ h3 > {% endifchanged %} < a href = " {{ date | date :"M/d" | lower }} /" > {{ date | date :"j" ...
https://man.plustar.jp/django/ref/templates/builtins.html - [similar]
Django 1.8.7 リリースノート — Django 4.0.6 ドキュメント 7994
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lease (1.10.0). Fixed settings leak possibility in date template filter ¶ If an application allows users t ... o specify an unvalidated format for dates and passes this format to the da ... te filter, e.g. {{ last_updated|date:user_date_format }} , then a malicious user ... settings by specifying a settings key instead of a date format. e.g. "SECRET_KEY" instead of "j/m/Y" . To ...
https://man.plustar.jp/django/releases/1.8.7.html - [similar]
はじめての Django アプリ作成、その 5 — Django 4.0.6 ドキュメント 7817
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... True を返すのですが(適切な動作)、 Question の pub_date が未来の日付になっている場合にも True を返してしま ... anage.py shell ...\> py manage.py shell >>> import datetime >>> from django.utils import timezone >>> from ... Question >>> # create a Question instance with pub_date 30 days in the future >>> future_question = Questi ... on ( pub_date = timezone . now () + datetime . timedelta ( days ...
https://man.plustar.jp/django/intro/tutorial05.html - [similar]
設定 — Django 4.0.6 ドキュメント 7792
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s True and ALLOWED_HOSTS is empty, the host is validated against ['.localhost', '127.0.0.1', '[::1]'] . AL ... hen USE_TZ is True and this option is set, reading datetimes from the database returns aware datetimes in ... g. SQLite, MySQL, Oracle), Django reads and writes datetimes in local time according to this option if it ... n't. Changing the connection time zone changes how datetimes are read from and written to the database. If ...
https://man.plustar.jp/django/ref/settings.html - [similar]
Django 1.4 documentation 7336
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... . full_name class Article ( models . Model ): pub_date = models . DateTimeField () headline = models . Ch ... eate an article. # Article を作成します。 >>> from datetime import datetime >>> a = Article ( pub_date = d ... mport models class Article ( models . Model ): pub_date = models . DateTimeField () headline = models . Ch ... year ): a_list = Article . objects . filter ( pub_date__year = year ) return render_to_response ( 'news/y ...
https://man.plustar.jp/django/contents.html - [similar]
多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 7196
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... line = models . CharField ( max_length = 100 ) pub_date = models . DateField () reporter = models . Foreig ... om' ) >>> r2 . save () Create an Article: >>> from datetime import date >>> a = Article ( id = None , head ... line = "This is a test" , pub_date = date ( 2005 , 7 , 27 ), reporter = r ) >>> a . s ... jects . create ( headline = "This is a test" , pub_date = date ( 2005 , 7 , 27 ), reporter = r3 ) Tracebac ...
https://man.plustar.jp/django/topics/db/examples/many_to_one.html - [similar]
タイムゾーン — Django 4.0.6 ドキュメント 7196
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ト ¶ native と aware の日時オブジェクト ¶ Python の datetime.datetime のオブジェクトには、タイムゾーン情報を ... 保持するために使える tzinfo 属性があり、これは datetime.tzinfo のサブクラスのインスタンスで表されます。 ... この属性がセットされオフセットを示すとき、datetime オブジェクトは aware となります。それ以外の場合 ... n time zone support is disabled, Django uses naive datetime objects in local time. This is sufficient for ...
https://man.plustar.jp/django/topics/i18n/timezones.html - [similar]
Model Meta options — Django 4.0.6 ドキュメント 7158
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... d or a list of field names in the model, typically DateField , DateTimeField , or IntegerField . This spec ... est() methods. 実装例: # Latest by ascending order_date. get_latest_by = "order_date" # Latest by priority ... descending, order_date ascending. get_latest_by = [ '-priority' , 'order_ ... n obtaining lists of objects: ordering = [ '-order_date' ] This is a tuple or list of strings and/or query ...
https://man.plustar.jp/django/ref/models/options.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 7120
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... るには fields 引数を用いる事ができます。 例えば、 update() の呼び出しによって期待する更新が行われたかをテス ... 、以下のようなテストを書くことができます: def test_update_result ( self ): obj = MyModel . objects . create ... ) MyModel . objects . filter ( pk = obj . pk ) . update ( val = F ( 'val' ) + 1 ) # At this point obj.val ... is still 1, but the value in the database # was updated to 2. The object's updated value needs to be relo ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
The sitemap framework — Django 4.0.6 ドキュメント 7057
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lse ) def lastmod ( self , obj ): return obj . pub_date Note: changefreq and priority are class attributes ... angefreq , and priority ). lastmod should return a datetime . There is no location method in this example, ... items() -- and return that object's last-modified date/time as a datetime . If it's an attribute, its val ... ue should be a datetime representing the last-modified date/time for e ...
https://man.plustar.jp/django/ref/contrib/sitemaps.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT