Results of 1 - 10 of about 157 for time (0.129 sec.)
- タイムゾーン — Django 4.0.6 ドキュメント 12221
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
です。 Even if your website is available in only one time zone, it's still good practice to store data in UT ...
your database. The main reason is daylight saving time (DST). Many countries have a system of DST, where ...
and backward in autumn. If you're working in local time, you're likely to encounter errors twice a year, w ...
is problem is to use UTC in the code and use local time only when interacting with end users. Time zone su ...
-
https://man.plustar.jp/django/topics/i18n/timezones.html
- [similar]
- Django Utils — Django 4.0.6 ドキュメント 11471
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nteger). patch_response_headers ( response , cache_timeout = None ) ¶ Adds some useful headers to the give ...
eader is only added if it isn't already set. cache_timeout is in seconds. The CACHE_MIDDLEWARE_SECONDS set ...
nse ) ¶ Adds an Expires header to the current date/time. Adds a Cache-Control: max-age=0, no-cache, no-sto ...
one . learn_cache_key ( request , response , cache_timeout = None , key_prefix = None , cache = None ) ¶ L ...
-
https://man.plustar.jp/django/ref/utils.html
- [similar]
- How to create custom template tags and filters — Django 4.0.6 ドキュメント 10917
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ド引数 ( is_safe 、 needs_autoescape 、 expects_localtime ) を受け入れます。これらの引数は、後述の フィルタと ...
{{ comment | urlize | linebreaksbr }} Filters and time zones ¶ If you write a custom filter that operates ...
on datetime objects, you'll usually register it with the expec ...
ts_localtime flag set to True : @register . filter ( expects_lo ...
-
https://man.plustar.jp/django/howto/custom-template-tags.html
- [similar]
- 設定 — Django 4.0.6 ドキュメント 9809
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
, consult your backend module's own documentation. TIMEOUT ¶ デフォルト値: 300 The number of seconds befor ...
ds. The reason for setting a long-lived expiration time is to avoid problems in the case of a user closing ...
sk, thereby causing CSRF protection checks to (sometimes intermittently) fail. Change this setting to None ...
setting offers little practical benefit, it's sometimes required by security auditors. If you enable this ...
-
https://man.plustar.jp/django/ref/settings.html
- [similar]
- QuerySet API リファレンス — Django 4.0.6 ドキュメント 9763
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
y for use (reading from the database can take some time, defeating the purpose of caching). This means tha ...
recreate the QuerySet from the database at a later time, pickle the query attribute of the QuerySet . You ...
diagnose, such as silently corrupted objects, a RuntimeWarning is raised when you try to unpickle a querys ...
ます: Entry . objects . exclude ( pub_date__gt = datetime . date ( 2005 , 1 , 3 ), headline = 'Hello' ) SQL文 ...
-
https://man.plustar.jp/django/ref/models/querysets.html
- [similar]
- File storage API — Django 4.0.6 ドキュメント 9267
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
if the given file name does not exist. get_created_time ( name ) ¶ Returns a datetime of the system's ctim ...
e, i.e. os.path.getctime() . On some systems (like Unix), this is the time ...
e, and on others (like Windows), it's the creation time of the file. The Storage class ¶ class Storage ¶ T ...
e as necessary. 注釈 When methods return naive datetime objects, the effective timezone used will be the c ...
-
https://man.plustar.jp/django/ref/files/storage.html
- [similar]
- Django 1.4 release notes — Django 4.0.6 ドキュメント 9209
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e biggest new feature in Django 1.4 is support for time zones when handling date/times. When enabled, this ...
Django will store date/times in UTC, use timezone-aware objects internally, an ...
d translate them to users' local timezones for display. If you're upgrading an existing ...
project to Django 1.4, switching to the timezone aware mode may take some care: the new mode di ...
-
https://man.plustar.jp/django/releases/1.4.html
- [similar]
- PostgreSQL specific database functions — Django 4.0.6 ドキュメント 8159
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nNow ¶ class TransactionNow ¶ Returns the date and time on the database server that the current transactio ...
e not in a transaction it will return the date and time of the current statement. This is a complement to ...
.models.functions.Now , which returns the date and time of the current statement. Note that only the outer ...
o atomic() sets up a transaction and thus sets the time that TransactionNow() will return; nested calls cr ...
-
https://man.plustar.jp/django/ref/contrib/postgres/functions.html
- [similar]
- Django 1.6 release notes — Django 4.0.6 ドキュメント 7605
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
very dear friend and developer. Malcolm was a long-time contributor to Django, a model community member, a ...
patible; see the backwards-incompatibility notes . Time zone aware aggregation ¶ The support for time zone ...
itation was lifted in Django 1.6. Use QuerySet.datetimes() to perform time zone aware aggregation on a Dat ...
eTimeField . Support for savepoints in SQLite ¶ Django 1 ...
-
https://man.plustar.jp/django/releases/1.6.html
- [similar]
- Database Functions — Django 4.0.6 ドキュメント 7259
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
atabase type: >>> from django.db.models import DateTimeField >>> from django.db.models.functions import Ca ...
st , Coalesce >>> from django.utils import timezone >>> now = timezone . now () >>> Coalesce ( 'up ...
dated' , Cast ( now , DateTimeField ())) Collate ¶ class Collate ( expression , c ...
dy = models . TextField () modified = models . DateTimeField ( auto_now = True ) class Comment ( models . ...
-
https://man.plustar.jp/django/ref/models/database-functions.html
- [similar]