Results of 151 - 160 of about 438 for For (0.117 sec.)
- How to create database migrations — Django 4.0.6 ドキュメント 4264
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
to run a migration against a particular database. For example, you may want to only run a migration on a ...
as attribute: from django.db import migrations def forwards ( apps , schema_editor ): if schema_editor . ...
grations ] operations = [ migrations . RunPython ( forwards ), ] You can also provide hints that will be ...
he following: from django.db import migrations def forwards ( apps , schema_editor ): # Your migration co ...
-
https://man.plustar.jp/django/howto/writing-migrations.html
- [similar]
- Conditional Expressions — Django 4.0.6 ドキュメント 4222
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tional expression evaluates a series of conditions for each row of a table and returns the matching resul ...
is used to encapsulate a condition and its result for use in the conditional expression. Using a When() ...
g the then keyword. Changed in Django 4.0: Support for lookup expressions was added. Some examples: >>> f ...
. 注釈 Since the then keyword argument is reserved for the result of the When() , there is a potential co ...
-
https://man.plustar.jp/django/ref/models/conditional-expressions.html
- [similar]
- Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 4222
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ions. It does not provide protection against brute force attacks via any rate limiting mechanism. You may ...
RD. Use the login name and a hash of the password. For example: ADMIN_LOGIN = 'admin' ADMIN_PASSWORD = 'p ...
mport Employee # Define an inline admin descriptor for Employee model # which acts a bit like a singleton ...
関係のループがなくなるようにしてください。(お互いに ForeignKey を持つ2つの通常のモデルを作ることで、 makem ...
-
https://man.plustar.jp/django/topics/auth/customizing.html
- [similar]
- Generic date ビュー — Django 4.0.6 ドキュメント 4189
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ve" ), ] 例 myapp/article_archive.html : < ul > {% for article in latest %} < li > {{ article.pub_date }} ...
: {{ article.title }} </ li > {% endfor %} </ ul > これは、すべての記事 (article) を出力し ...
fying whether to retrieve the full list of objects for this year and pass those to the template. If True ...
xample myapp/article_archive_year.html : < ul > {% for date in date_list %} < li > {{ date | date }} </ l ...
-
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html
- [similar]
- GeoJSON Serializer — Django 4.0.6 ドキュメント 4189
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ializer ¶ GeoDjango provides a specific serializer for the GeoJSON format. See Django オブジェクトのシリア ...
ル化 for more information on serialization. The geojson ser ...
ializer is not meant for round-tripping data, as it has no deserializer equ ...
ivalent. For example, you cannot use loaddata to reload the out ...
-
https://man.plustar.jp/django/ref/contrib/gis/serializers.html
- [similar]
- マイグレーション操作 — Django 4.0.6 ドキュメント 4189
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ntain both class objects as well as strings in the format "appname.ModelName" if you want to depend on an ...
t_to ) ¶ Makes or deletes the _order column needed for the order_with_respect_to option on the Meta subcl ...
ot affect the database, but persists these changes for RunPython instances to use. options should be a di ...
would put in the field declaration in models.py - for example, models.IntegerField(null=True) . The pres ...
-
https://man.plustar.jp/django/ref/migration-operations.html
- [similar]
- Django 1.9.2 リリースノート — Django 4.0.6 ドキュメント 4189
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
hange" but not "add" permission can create objects for ModelAdmin 's with save_as=True ¶ If a ModelAdmin ...
as new". A regression in Django 1.9 prevented that form submission from raising a "Permission Denied" err ...
or for users without the "add" permission. Backwards inco ...
me invalid Python syntax. This causes difficulties for packaging systems that unconditionally byte-compil ...
-
https://man.plustar.jp/django/releases/1.9.2.html
- [similar]
- django.utils.text — Django 4.0.6 ドキュメント 4172
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ines longer than ``width``. """ def _generator (): for line in text . splitlines ( True ): # True keeps t ...
ax length - end_text length) truncate_len = length for char in self . add_truncation_text ( "" , truncate ...
ain number of chars.""" s_len = 0 end_index = None for i , char in enumerate ( text ): if unicodedata . c ...
truncate_len : end_text_pos = pos continue # Check for tag tag = re_tag . match ( m [ 0 ]) if not tag or ...
-
https://man.plustar.jp/django/_modules/django/utils/text.html
- [similar]
- GeoDjango Management Commands — Django 4.0.6 ドキュメント 4156
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
M_NAME ¶ Specifies the model attribute name to use for the geometry field. Defaults to 'geom' . --layer L ...
AYER_KEY ¶ The key for specifying which layer in the OGR DataSource sourc ...
t layer). May be an integer or a string identifier for the Layer . When inspecting databases, layer is ge ...
ping ¶ Automatically generate a mapping dictionary for use with LayerMapping . --multi-geom ¶ When genera ...
-
https://man.plustar.jp/django/ref/contrib/gis/commands.html
- [similar]
- Django 1.4.18 release notes — Django 4.0.6 ドキュメント 4156
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
all dashes to underscores, and prepending HTTP_ . For instance, a header X-Auth-User would become HTTP_X ...
thus also in Django's request.META dictionary). Unfortunately, this means that the WSGI environ cannot d ...
t if a header is used in a security-sensitive way (for instance, passing authentication information along ...
n if the proxy carefully strips any incoming value for X-Auth-User , an attacker may be able to provide a ...
-
https://man.plustar.jp/django/releases/1.4.18.html
- [similar]