per page, with , order by , clip by
Results of 1 - 10 of about 67 for Alias (0.004 sec.)
データベース関数 11267
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... Model ): name = models . CharField ( max_length = 50 ) age = models . PositiveIntegerField ( null = True , blank = True ) alias = models . CharField ( max_length = 50 , null = True , blank = True ) goes_by = models . CharField ( max_length = 50 , nul ... eate ( name = "Margaret Smith" , goes_by = "Maggie" ) >>> author = Author . objects . annotate ( screen_name = Coalesce ( "alias" , "goes_by" , "name" )) . get () >>> print ( author . screen_name ) Maggie >>> # Prevent an aggregate Sum() from returnin ... t F >>> from django.db.models.functions import JSONArray , Lower >>> Author . objects . create ( name = "Margaret Smith" , alias = "msmith" , age = 25 ) >>> author = Author . objects . annotate ( ... json_array = JSONArray ( ... Lower ( "name" ), ... ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
Migrating email to mailers 10897
Migrating email to mailers Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduced mail.mailers for obtaining configured email backend instances, replacing mail.get_connectio ... should take precedence over settings. Accept variable **kwargs and pass them to superclass init. (This will include a new alias argument which must be passed to the superclass.) Ensure that any **kwargs used by the backend are not passed to superclas ... o not accept variable positional *args or pass them to superclass init. The BaseEmailBackend superclass now initializes an alias attribute. This is useful for error messages (e.g., raise InvalidMailer(f"Bad host {host}", alias=self.alias) ), but shoul ... s, or that support older Django versions: A backend can detect it is being initialized without MAILERS by checking if self.alias is None . (Django's built-in backends check this to decide whether deprecated settings should be used.) Libraries supporti ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Django を Apache と mod_wsgi とともに使うには? 9773
Django を Apache と mod_wsgi とともに使うには? Apache と mod_wsgi と共にDjangoをデプロイすることは、Djangoを製品とする際に試され、テストされた方法です。 mod_wsgi は、Djangoを含む任意のPythonの WSGI アプリケーションをホストできるApacheのモジ ... 本設定 mod_wsgiをインストールして有効にしたら、Apacheサーバーの httpd.conf ファイルを編集して、以下を追加します。 WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py WSGIPythonHome /path/to/venv WSGIPythonPath /path/to/mysite.com <Directory /path/to/m ... ysite.com/mysite > <Files wsgi.py > Require all granted </Files> </Directory> WSGIScriptAlias の行の最初の部分は、あなたがアプリケーションを提供したいベースとなるURLパスであり( / ルートURLを示している)、二番目の部分は ... example.com サブディレクトリでプロジェクトを提供したい場合は(本例では https://example.com/mysite となります) 、 WSGIScriptAlias を設定の上部に追記します。 WSGIScriptAlias /mysite /path/to/mysite.com/mysite/wsgi.py process-group=example.com 詳細につい ...
https://man.mtool.work/django/6.1/howto/deployment/wsgi/modwsgi.html
マイグレーション・オペレーション 9403
マイグレーション・オペレーション マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーションを宣言的に保持するオブジェクト、から構成されます。 Django はこれらの Operation オブジェクトも ... app registry; # if we directly import it, it'll be the wrong version Country = apps . get_model ( "myapp" , "Country" ) db_alias = schema_editor . connection . alias Country . objects . using ( db_alias ) . bulk_create ( [ Country ( name = "USA" , cod ... eates two Country instances, # so reverse_func() should delete them. Country = apps . get_model ( "myapp" , "Country" ) db_alias = schema_editor . connection . alias Country . objects . using ( db_alias ) . filter ( name = "USA" , code = "us" ) . dele ... te () Country . objects . using ( db_alias ) . filter ( name = "France" , code = "fr" ) . delete () class Migration ( migrations . Migration ): dependencies = [] ope ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
Django 4.2.25 リリースノート 9403
Django 4.2.25 リリースノート 2025年10月1日 Django 4.2.25 では 4.2.24 におけるセキュリティの問題のうち 深刻度 "high" 1件と深刻度 "low" 1件を修正しました。 CVE-2025-59681: MySQL および MariaDB における QuerySet.annotate() , alias() , aggregat ... e() , および extra() 利用時の SQL インジェクションの可能性 QuerySet.annotate() , alias() , aggregate() , および extra() メソッドには、列エイリアスにおける SQL インジェクションの脆弱性が存在していました。これら ...
https://man.mtool.work/django/6.1/releases/4.2.25.html
Django 5.1.13 リリースノート 9403
Django 5.1.13 リリースノート 2025年10月1日 Django 5.1.13 では 5.1.12 におけるセキュリティの問題のうち 深刻度 "high" 1件と深刻度 "low" 1件を修正しました。 CVE-2025-59681: MySQL および MariaDB における QuerySet.annotate() , alias() , aggregat ... e() , および extra() 利用時の SQL インジェクションの可能性 QuerySet.annotate() , alias() , aggregate() , および extra() メソッドには、列エイリアスにおける SQL インジェクションの脆弱性が存在していました。これら ...
https://man.mtool.work/django/6.1/releases/5.1.13.html
Django 2.2 リリースノート 9218
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... にするため、 sqlparse 0.2.2+ との依存関係が必須となりました。 Django とともに自動的にインストールされます。 cached_property aliases In usage like: from django.utils.functional import cached_property class A : @cached_property def base ( self ): return ... ... alias = base alias is not cached. Where the problem can be detected (Python 3.6 and later), such usage now raises TypeError: Can ... not assign the same cached_property to two different names ('base' and 'alias'). Use this instead: import operator class A : ... alias = property ( operator . attrgetter ( "base" )) Permissions for pr ...
https://man.mtool.work/django/6.1/releases/2.2.html
メールを送信する 9218
メールを送信する Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework also supports swapping in different delivery mechanisms: you can direct email to the console ... イプを持つ message と text/html コンテンツタイプを持つ html_message を合わせ持つものになります。 using : An optional MAILERS alias to use to send the mail. If unspecified, the default mailer configuration will be used. fail_silently , auth_user , auth_p ... keyword arguments if used, and are not allowed with the using argument. The keyword argument using is an optional MAILERS alias to use to send the mail. If unspecified, the default mailer configuration will be used. Each separate element of datatuple ... xt/html コンテンツタイプを持つ html_message を合わせ持つものになります。 The keyword argument using is an optional MAILERS alias to use to send the mail. If unspecified, the default mailer configuration will be used. バージョン 6.0 で非推奨: Passing f ...
https://man.mtool.work/django/6.1/topics/email.html
Django 4.2.28 release notes 9033
Django 4.2.28 release notes February 3, 2026 Django 4.2.28 fixes three security issues with severity "high", two security issues with severity "moderate", and one security issue with severity "low" in 4.2.27. CVE-2025-13473: Username enumer ... s issue has severity "moderate" according to the Django security policy . CVE-2026-1287: Potential SQL injection in column aliases via control characters FilteredRelation was subject to SQL injection in column aliases via control characters, using a s ... ctionary expansion, as the **kwargs passed to QuerySet.annotate() , aggregate() , extra() , values() , values_list() , and alias() . This issue has severity "high" according to the Django security policy . CVE-2026-1312: Potential SQL injection via Qu ... erySet.order_by and FilteredRelation QuerySet.order_by() was subject to SQL injection in column aliases containing periods when the same alias was, using a suitably crafted dictionary, with dictionary expansion, used in Filt ...
https://man.mtool.work/django/6.1/releases/4.2.28.html
Django 5.2.11 release notes 9033
Django 5.2.11 release notes February 3, 2026 Django 5.2.11 fixes three security issues with severity "high", two security issues with severity "moderate", and one security issue with severity "low" in 5.2.10. CVE-2025-13473: Username enumer ... s issue has severity "moderate" according to the Django security policy . CVE-2026-1287: Potential SQL injection in column aliases via control characters FilteredRelation was subject to SQL injection in column aliases via control characters, using a s ... ctionary expansion, as the **kwargs passed to QuerySet.annotate() , aggregate() , extra() , values() , values_list() , and alias() . This issue has severity "high" according to the Django security policy . CVE-2026-1312: Potential SQL injection via Qu ... erySet.order_by and FilteredRelation QuerySet.order_by() was subject to SQL injection in column aliases containing periods when the same alias was, using a suitably crafted dictionary, with dictionary expansion, used in Filt ...
https://man.mtool.work/django/6.1/releases/5.2.11.html
PREV 1 2 3 4 5 6 7 NEXT