per page, with , order by , clip by
Results of 1 - 10 of about 16 for connect (0.003 sec.)
シグナル 13620
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... der , ** kwargs ): print ( "Setting changed!" ) class MyAppConfig ( AppConfig ): ... def ready ( self ): setting_changed . connect ( my_receiver ) Django の 組み込みのシグナル は、ユーザコードに特定のアクションを通知します。 また、独自のカスタムシグナル ... ィスパッチするのではなく、処理コードを直接呼び出すことを選ぶべきです。 シグナルを待ち受ける シグナルを受信するには、 Signal.connect() メソッドを使って receiver 関数を登録します。シグナルが送信されると、レシーバ関数が呼び出されます。シグナルのすべてのレシ ... ーバ関数は、登録された順番に1つずつ呼び出されます。 Signal. connect ( receiver , sender = None , weak = True , dispatch_uid = None ) [ソース] パラメータ : receiver -- このシグナルに接続される ...
https://man.mtool.work/django/6.1/topics/signals.html
Django 1.8.16 リリースノート 10795
Django 1.8.16 リリースノート November 1, 2016 Django 1.8.16 fixes two security issues in 1.8.15. User with hardcoded password created when running tests on Oracle When running tests with an Oracle database, Django creates a temporary databa ... TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to connect. This user is usually dropped after the test suite completes, but not when using the manage.py test --keepdb option or if ... the user has an active session (such as an attacker's connection). A randomly generated password is now used for each test run. DNS rebinding vulnerability when DEBUG=True Older versio ... site scripting vector, which could be quite serious if developers load a copy of the production database in development or connect to some production services for which there's no development instance, for example. If a project uses a package like the d ...
https://man.mtool.work/django/6.1/releases/1.8.16.html
Django 1.9.11 リリースノート 10691
Django 1.9.11 リリースノート November 1, 2016 Django 1.9.11 では、1.9.10 にあった2つのセキュリティの問題を修正しました。 User with hardcoded password created when running tests on Oracle When running tests with an Oracle database, Django cr ... TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to connect. This user is usually dropped after the test suite completes, but not when using the manage.py test --keepdb option or if ... the user has an active session (such as an attacker's connection). A randomly generated password is now used for each test run. DNS rebinding vulnerability when DEBUG=True Older versio ... site scripting vector, which could be quite serious if developers load a copy of the production database in development or connect to some production services for which there's no development instance, for example. If a project uses a package like the d ...
https://man.mtool.work/django/6.1/releases/1.9.11.html
Django 1.10.3 リリースノート 10275
Django 1.10.3 リリースノート November 1, 2016 Django 1.10.3 fixes two security issues and several bugs in 1.10.2. User with hardcoded password created when running tests on Oracle When running tests with an Oracle database, Django creates a ... TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to connect. This user is usually dropped after the test suite completes, but not when using the manage.py test --keepdb option or if ... the user has an active session (such as an attacker's connection). A randomly generated password is now used for each test run. DNS rebinding vulnerability when DEBUG=True Older versio ... site scripting vector, which could be quite serious if developers load a copy of the production database in development or connect to some production services for which there's no development instance, for example. If a project uses a package like the d ...
https://man.mtool.work/django/6.1/releases/1.10.3.html
Porting your apps from Django 0.96 to 1.0 9028
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... reading through the list and checking your code for these things. シグナル Add **kwargs to any registered signal handlers. Connect, disconnect, and send signals via methods on the Signal object instead of through module methods in django.dispatch.dispat ... 96) New (1.0) def callback(sender) def callback(sender, **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sende ... r=Any) sig.connect(callback, sender=None) コメント If you were using Django 0.96's django.contrib.comments app, you'll need to upgrade to the ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
データベース 8092
データベース Django は次のデータベースを公式にサポートしています。 PostgreSQL MariaDB MySQL Oracle SQLite サードパーティから提供されているデータベースバックエンド も多数あります。 Django はすべてのデータベースで可能な限り多くの機能をサポート ... スト-レスポンスサイクル外では、接続は明示的に閉じるか、タイムアウトが発生するまで開いたままになります。 django.db.close_old_connections() を使用して、すべての古いまたは使用できない接続を閉じることができます。 エンコーディング Django はすべてのデータベース ... サポートは、将来のある時点で非推奨となり削除される可能性があります。 PostgreSQL の接続設定 詳細は HOST を参照してください。 connection service file のサービス名と password file のパスワードを使用して接続するためには、それらを DATABASES 内のデータベース設 ... ENGINE" : "django.db.backends.postgresql" , # ... "OPTIONS" : { "assume_role" : "my_application_role" , }, }, } 接続プール Connection pooling allows connections to be reused across threads, reducing connection setup overhead. When enabled, Django mainta ...
https://man.mtool.work/django/6.1/ref/databases.html
シグナル 8092
シグナル Djangoが送信する全てのシグナルのリストです。全ての組み込みシグナルは send() メソッドを使用して送信されます。 参考 シグナルの登録方法と受信方法に関する情報については、 シグナルディスパッチャ のドキュメントを参照してください。 認証フ ... your handler is a local function, it may be garbage collected. To prevent this, pass weak=False when you call the signal's connect() . 注釈 モデルシグナルの sender モデルは、レシーバを接続する際にその完全なアプリケーションラベルを指定することで、遅延参照 ... django.db.models.signals import m2m_changed def toppings_changed ( sender , ** kwargs ): # Do something pass m2m_changed . connect ( toppings_changed , sender = Pizza . toppings . through ) そして、次のようにした場合: >>> p = Pizza . objects . create ( ... der , ** kwargs ): # Your specific logic here pass class MyAppConfig ( AppConfig ): ... def ready ( self ): post_migrate . connect ( my_callback , sender = self ) 注釈 AppConfig インスタンスを sender 引数として提供する場合は、シグナルが ready() で登録さ ...
https://man.mtool.work/django/6.1/ref/signals.html
フィクスチャ (fixture) 7780
フィクスチャ (fixture) フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャにはユニークな名前があり、フィクスチャを構成するファイルは、複数のアプリケーションの複数のディレク ... del def my_handler ( ** kwargs ): # disable the handler during fixture loading if kwargs [ "raw" ]: return ... post_save . connect ( my_handler , sender = MyModel ) このロジックをカプセル化するデコレータを書くこともできます: from functools import wraps ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
ロギングの設定と利用 7676
ロギングの設定と利用 参考 Django のロギング リファレンス Django のロギングの概要 Django はそのままで動作する デフォルトのロギング設定 を持っており、すぐに拡張可能です。 基本的なロギング呼び出しを作成する ログメッセージをコード内から送信する ... で、ロガーとハンドラーの関係は多対多であることに注意してください。 このコードを実行したら、: logger . debug ( "Attempting to connect to API" ) プロジェクトルートの general.log ファイルにそのメッセージが保存されるでしょう。 フォーマッタを設定する By defaul ...
https://man.mtool.work/django/6.1/howto/logging.html
メールを送信する 7676
メールを送信する 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 ... } This defines three mailer configurations: "default" sends through an SMTP server at smtp.example.net with a TLS secured connection. It reads an account id and API key from environment variables and uses them as the SMTP authentication username and pa ... tion scheme.) "notifications" sends through a hypothetical commercial email service, using a third-party EmailBackend that connects directly to their API. (See Third-party backends for pointers on locating real, community maintained email backend packag ... ( subject , message , from_email , recipient_list , * , fail_silently = False , auth_user = None , auth_password = None , connection = None , html_message = None ) [ソース] django.core.mail.send_mail() sends a single email message. subject 、 message 、 ...
https://man.mtool.work/django/6.1/topics/email.html
PREV 1 2 NEXT