Results of 1 - 10 of about 41 for block (0.025 sec.)
- django.db.transaction — Django 4.0.6 ドキュメント 14034
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
llback when exiting the innermost enclosing atomic block that has `savepoint=True` (that's the default). Us ...
known-good state! Otherwise, you break the atomic block and data corruption may occur. """ return get_conn ...
ception is raised while not enforcing the enclosed block to be in a transaction. This is needed by Model.sa ...
get_connection ( using ) if connection . in_atomic_block : connection . needs_rollback = True raise [ドキュ ...
-
https://man.plustar.jp/django/_modules/django/db/transaction.html
- [similar]
- データベースのトランザクション — Django 4.0.6 ドキュメント 11983
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
います。 It is sometimes useful to ensure an atomic block is always the outermost atomic block, ensuring tha ...
t any database changes are committed when the block is exited without errors. This is known as durabil ...
e achieved by setting durable=True . If the atomic block is nested within another it raises a RuntimeError ...
state of the database connection within an atomic block will raise an exception. atomic takes a using argu ...
-
https://man.plustar.jp/django/topics/db/transactions.html
- [similar]
- The Django Template Language — Django 4.0.6 ドキュメント 11641
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
で説明します。 {% extends "base_generic.html" %} {% block title %}{{ section.title }}{% endblock %} {% block ...
truncatewords :"100" }} </ p > {% endfor %} {% endblock %} 設計思想 Why use a text-based template instead ...
and if that variable is "true" the contents of the block are displayed: {% if athlete_list %} Number of ath ...
ly not work as you expect. length is an exception. block and extends Set up template inheritance (see below ...
-
https://man.plustar.jp/django/ref/templates/language.html
- [similar]
- JavaScript customizations in the admin — Django 4.0.6 ドキュメント 11206
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
plate, extend the admin_change_form_document_ready block and add the event listener code: {% extends 'admin ...
/change_form.html' %} {% load static %} {% block admin_change_form_document_ready %} {{ block .supe ...
'app/formset_handlers.js' %} " ></ script > {% endblock %} app/static/app/formset_handlers.js ¶ ( function ...
in mind: The JavaScript code must go in a template block if you are inheriting admin/change_form.html or it ...
-
https://man.plustar.jp/django/ref/contrib/admin/javascript.html
- [similar]
- Writing documentation — Django 4.0.6 ドキュメント 8859
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ce Python's and Sphinx' documentation. Add .. code-block:: <lang> to literal blocks so that they get highli ...
id syntax, it won't be highlighted. Adding .. code-block:: python , for example, will force highlighting de ...
n replace this fragment: use this command: .. code-block:: console $ python manage.py shell with this one: ...
ou usually will replace occurrences of the .. code-block:: console directive. You don't need to change the ...
-
https://man.plustar.jp/django/internals/contributing/writing-documentation.html
- [similar]
- How to override templates — Django 4.0.6 ドキュメント 8703
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ite.html ¶ {% extends "admin/base_site.html" %} {% block branding %} < img src = "link/to/logo.png" alt = " ...
logo" > {{ block .super }} {% endblock %} Key points to note: The e ...
verridden. The template replaces just the branding block, adding a custom logo, and using block.super to re ...
ml ) when resolving the extends tag. Combined with block.super it is a powerful technique to make small cus ...
-
https://man.plustar.jp/django/howto/overriding-templates.html
- [similar]
- How to create custom template tags and filters — Django 4.0.6 ドキュメント 7926
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
template tag is used inside a {% autoescape off %} block. Thread-safety considerations ¶ Once a node is par ...
in the context will only be available in the same block of the template in which it was assigned. This beh ...
so that they don't conflict with context in other blocks. But, there's a problem with CurrentTimeNode2 : T ...
ults to a template variable. Parsing until another block tag ¶ Template tags can work in tandem. For instan ...
-
https://man.plustar.jp/django/howto/custom-template-tags.html
- [similar]
- Django の概要 — Django 4.0.6 ドキュメント 7646
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
s/year_archive.html ¶ {% extends "base.html" %} {% block title %} Articles for {{ year }}{% endblock %} {% ...
date | date :"F j, Y" }} </ p > {% endfor %} {% endblock %} 変数は二重の波括弧で囲まれています。 {{ article ...
¶ {% load static %} < html > < head > < title > {% block title %}{% endblock %} </ title > </ head > < body ...
tatic 'images/sitelogo.png' %} " alt = "Logo" > {% block content %}{% endblock %} </ body > </ html > 簡単に ...
-
https://man.plustar.jp/django/intro/overview.html
- [similar]
- Django 3.2 release notes — Django 4.0.6 ドキュメント 7584
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
stgreSQL, allows acquiring weaker locks that don't block the creation of rows that reference locked rows th ...
tomic() guarantees that changes made in the atomic block will be committed if the block exits without error ...
s. A nested atomic block marked as durable will raise a RuntimeError . Adde ...
e if the file cannot be locked, instead of raising BlockingIOError . The password reset mechanism now inval ...
-
https://man.plustar.jp/django/releases/3.2.html
- [similar]
- GDAL API — Django 4.0.6 ドキュメント 7476
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
array can be requested by specifying an offset and block size as tuples. If NumPy is available, the data is ...
he band, or to the number of pixels for a specific block of pixel values if the offset and size parameters ...
ms in the input is different from the target pixel block, the shape parameter must be specified. The shape ...
licated to update the pixel values of the selected block. This is useful to fill an entire band with a sing ...
-
https://man.plustar.jp/django/ref/contrib/gis/gdal.html
- [similar]