per page, with , order by , clip by
Results of 1 - 10 of about 119 for Settings (0.004 sec.)
Djangoの設定 13304
Djangoの設定 Djangoの設定ファイルには、インストールしたDjangoの全ての設定が含まれています。このドキュメントでは、各設定の役割と、どのような設定を利用できるか説明していきます。 基礎 設定ファイルはモジュールレベルの変数が記述された、ただのPyt ... 例えば: MY_SETTING = [ str ( i ) for i in range ( 30 )] 他の設定ファイルから値を import できます。 設定ファイルの指定 DJANGO_SETTINGS_MODULE Django を使うとき、どの設定を使うかを Django に伝える必要があります。そのためには環境変数 DJANGO_SETTINGS_MODULE を ... 使います。 The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings . Note that the settings module should be on the Python sys.p ... 数を予め指定しておくか、ユーティリティを起動する度に設定モジュールを明示的に渡します。 例 (Unix Bash シェル): export DJANGO_SETTINGS_MODULE = mysite.settings django-admin runserver 例 (Windows シェル): set DJANGO_SETTINGS_MODULE=mysite.settings django-adm ...
https://man.mtool.work/django/6.1/topics/settings.html
Unit tests 12171
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... y. See Running all the tests for details on installing the optional test dependencies. Running the tests requires a Django settings module that defines the databases to use. To help you get started, Django provides and uses a sample settings module that ... uses the SQLite database. See Using another settings module to learn how to use a different settings module to run the tests with a different database. Having problems? See ト ... n -m pip install tox $ tox ...\> py -m pip install tox ...\> tox By default, tox runs the test suite with the bundled test settings file for SQLite, black , blacken-docs , flake8 , isort , lint-docs , zizmor , and the documentation spelling checker. In a ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Migrating email to mailers 11860
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 ... -party packages that send email, verify their compatibility with MAILERS before making other changes. Update email-related settings . Run with deprecation warnings enabled (see 廃止予定警告を解決する ) to identify other code needing updates. 注釈 Running ... ting AdminEmailHandler email_backend Ignoring transient failures in error reporting バージョン 6.1 で非推奨: The following settings and functions will be removed in Django 2028: EMAIL_BACKEND , EMAIL_FILE_PATH , EMAIL_HOST , EMAIL_HOST_PASSWORD , EMAIL_H ... and auth_password arguments to send_mail() and send_mass_mail() The email_backend argument to AdminEmailHandler Migrating settings Often, the only change needed to migrate to mailers is updating email-related settings. In your project's settings, define ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Coding style 8711
Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re ... Model ( models . Model ): class Direction ( models . TextChoices ): UP = "U" , "Up" DOWN = "D" , "Down" Use of django.conf.settings Modules should not in general use settings stored in django.conf.settings at the top level (i.e. evaluated when the module ... is imported). The explanation for this is as follows: Manual configuration of settings (i.e. not relying on the DJANGO_SETTINGS_MODULE environment variable) is allowed and possible as follows: from django.conf ... import settings settings . configure ({}, SOME_SETTING = "foo" ) However, if any setting is accessed before the settings.configure line, t ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.7.11 リリースノート 8139
Django 1.7.11 リリースノート November 24, 2015 Django 1.7.11 fixes a security issue and a data loss bug in 1.7.10. Fixed settings leak possibility in date template filter If an application allows users to specify an unvalidated format for d ... filter, e.g. {{ last_updated|date:user_date_format }} , then a malicious user could obtain any secret in the application's settings by specifying a settings key instead of a date format. e.g. "SECRET_KEY" instead of "j/m/Y" . To remedy this, the underlyi ... n used by the date template filter, django.utils.formats.get_format() , now only allows accessing the date/time formatting settings. バグ修正 Fixed a data loss possibility with Prefetch if to_attr is set to a ManyToManyField ( #25693 ). ...
https://man.mtool.work/django/6.1/releases/1.7.11.html
Django 1.8.16 リリースノート 8139
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 ... se user. In older versions, if a password isn't manually specified in the database settings TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to ... each test run. DNS rebinding vulnerability when DEBUG=True Older versions of Django don't validate the Host header against settings.ALLOWED_HOSTS when settings.DEBUG=True . This makes them vulnerable to a DNS rebinding attack . While Django doesn't ship ... d execute arbitrary SQL, which could be especially bad if the developers connect to the database with a superuser account. settings.ALLOWED_HOSTS is now validated regardless of DEBUG . For convenience, if ALLOWED_HOSTS is empty and DEBUG=True , the follo ...
https://man.mtool.work/django/6.1/releases/1.8.16.html
Django 1.4 リリースノート 8089
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... ould look like this: #!/usr/bin/env python import os , sys if __name__ == "__main__" : os . environ . setdefault ( "DJANGO_SETTINGS_MODULE" , "{{ project_name }}.settings" ) from django.core.management import execute_from_command_line execute_from_comman ... d_line ( sys . argv ) {{ project_name }} should be replaced with the Python package name of the actual project. If settings, URLconfs and apps within the project are imported or referenced using the project name prefix (e.g. myproject.settings , ... .), the new manage.py will need to be moved one directory up, so it is outside the project package rather than adjacent to settings.py and urls.py . For instance, with the following layout: manage.py mysite/ __init__.py settings.py urls.py myapp/ __init_ ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 1.9.11 リリースノート 8089
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 ... eates a temporary database user. In older versions, if a password isn't manually specified in the database settings TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to ... each test run. DNS rebinding vulnerability when DEBUG=True Older versions of Django don't validate the Host header against settings.ALLOWED_HOSTS when settings.DEBUG=True . This makes them vulnerable to a DNS rebinding attack . While Django doesn't ship ... d execute arbitrary SQL, which could be especially bad if the developers connect to the database with a superuser account. settings.ALLOWED_HOSTS is now validated regardless of DEBUG . For convenience, if ALLOWED_HOSTS is empty and DEBUG=True , the follo ...
https://man.mtool.work/django/6.1/releases/1.9.11.html
テストツール 7828
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... 引数の値(ドットで区切られたPythonパスの文字列であるべき)が backend 属性としてセットされます。値が指定されていない場合は、 settings.AUTHENTICATION_BACKENDS[0] に設定されます。 login() によって呼び出される authenticate() 関数は、通常このようにユーザーにア ... IE_NAME の名前でクッキーを作成することでセットすることができ、言語コードの値は次のようになります。 from django.conf import settings def test_language_using_cookie ( self ): self . client . cookies . load ({ settings . LANGUAGE_COOKIE_NAME : "fr" }) respo ... 使用するときは、必ず各テストの最後にアクティブな言語をリセットしてください。 def tearDown ( self ): translation . activate ( settings . LANGUAGE_CODE ) さらなる詳細は Django はどうやって言語の優先順位を検出するのか? にあります。 ミドルウェアが有効化されてい ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django 1.10.3 リリースノート 7728
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 ... temporary database user. In older versions, if a password isn't manually specified in the database settings TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to ... each test run. DNS rebinding vulnerability when DEBUG=True Older versions of Django don't validate the Host header against settings.ALLOWED_HOSTS when settings.DEBUG=True . This makes them vulnerable to a DNS rebinding attack . While Django doesn't ship ... d execute arbitrary SQL, which could be especially bad if the developers connect to the database with a superuser account. settings.ALLOWED_HOSTS is now validated regardless of DEBUG . For convenience, if ALLOWED_HOSTS is empty and DEBUG=True , the follo ...
https://man.mtool.work/django/6.1/releases/1.10.3.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT