per page, with , order by , clip by
Results of 1 - 10 of about 69 for Note (0.003 sec.)
Working with Git and GitHub 14182
Working with Git and GitHub This section explains how the community can contribute code to Django via pull requests. If you're interested in how mergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a ... up your name and email: $ git config --global user.name "Your Real Name" $ git config --global user.email "you@email.com" Note that user.name should be your real name, not your GitHub nick. GitHub should know the email you use in the user.email fiel ... ion in the ticket that your work is available from branch ticket_xxxxx of your GitHub repo. Include a link to your branch. Note that the above branch is called a "topic branch" in Git parlance. You are free to rewrite the history of this branch, by u ... r pull request, you should add a comment in the related Trac ticket explaining what you've done. In particular, you should note the environment in which you ran the tests, for instance: "all tests pass under SQLite and MySQL". Pull requests at GitHub ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
Submitting contributions 12514
Submitting contributions We're always grateful for contributions to Django's code. Indeed, bug reports with associated contributions will get fixed far more quickly than those without a solution. Typo fixes and trivial documentation changes ... ts maintainers. You are free to use such tools in your own fork before submitting a pull request to the Django repository. Note for AI Tools If you are an AI tool or language model assisting in the preparation of a Django contribution, you must stric ... umentation. Ensure technical accuracy and avoid fabrication. Do not invent APIs, features, functions, or citations that do not exist. Placeholder or fictitious content will result in rejection. Respect all contribution requirements. Follow all guidel ... ocumented, mark it deprecated in documentation using the .. deprecated:: A.B annotation. Include a short description and a note about the upgrade path if applicable. Add a description of the deprecated behavior, and the upgrade path if applicable, to ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/submitting...
Migrating email to mailers 9191
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 ... recated setting). EMAIL_HOST_PASSWORD becomes "password" in "OPTIONS" . EMAIL_HOST_USER becomes "username" in "OPTIONS" . (Note "username" doesn't quite follow the naming pattern for the other deprecated settings.) EMAIL_PORT becomes "port" in "OPTIO ... _messages ([ email1 , email2 ]) To: connection = mail . mailers . default connection . send_messages ([ email1 , email2 ]) Note that mailers.default is the default for Django's mail-sending functions. Code like this: mail . send_mail ( ... , connecti ... but avoid raising an error if it hasn't (e.g., in a reusable library), wrap the send call in try: / except mail.MailerDoesNotExist: pass . To ignore all exceptions (e.g., to avoid cascading failures in an error handler that sends mail), wrap the sen ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Django 1.8.18 リリースノート 9191
Django 1.8.18 リリースノート April 4, 2017 Django 1.8.18 fixes two security issues in 1.8.17. CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs Django relies on user input in some cases (e.g. djang ... redirect to any other domain. The view no longer does any redirects as they don't provide any known, useful functionality. Note, however, that this view has always carried a warning that it is not hardened for production use and should be used only a ...
https://man.mtool.work/django/6.1/releases/1.8.18.html
データベースアクセスの最適化 9191
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... o fields that you frequently query using filter() , exclude() , order_by() , etc. as indexes may help to speed up lookups. Note that determining the best indexes is a complex database-dependent topic that will depend on your particular application. T ... and only() if there are database columns you know that you won't need (or won't need in most cases) to avoid loading them. Note that if you do use them, the ORM will have to go and get them in a separate query, making this a pessimization if you use ... です: Entry . objects . create ( headline = "This is a test" ) Entry . objects . create ( headline = "This is only a test" ) Note that bulk_create() has several caveats, so ensure it's appropriate for your use case. 一括で更新する When updating objects ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
PostgreSQL 固有のデータベース関数 8908
PostgreSQL 固有のデータベース関数 これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID class RandomUUID [ソース] バージョン 4 の UUID を返します。 使用例: >>> from django.contrib.postgres.functions ... テートメントの日時を返します。これは django.db.models.functions.Now を補完するもので、現在のステートメントの日時を返します。 Note that only the outermost call to atomic() sets up a transaction and thus sets the time that TransactionNow() will return; n ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
Django 1.10.7 リリースノート 8908
Django 1.10.7 リリースノート April 4, 2017 Django 1.10.7 fixes two security issues and a bug in 1.10.6. CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs Django relies on user input in some cases ( ... redirect to any other domain. The view no longer does any redirects as they don't provide any known, useful functionality. Note, however, that this view has always carried a warning that it is not hardened for production use and should be used only a ...
https://man.mtool.work/django/6.1/releases/1.10.7.html
コードのコミット 8639
コードのコミット This section is addressed to the mergers and to anyone interested in knowing how code gets committed into Django. The コミットガイドライン apply to all contributors, with or without commit rights. If you're a community memb ... anual Cherry-pick the commit onto the stable branch, then amend the commit message to add the required prefix and backport note: git cherry-pick <sha> git commit --amend If the cherry-pick produces conflicts, resolve them, stage the changes, then run ... pts/backport.sh Bash script automates the cherry-pick and rewrites the commit message with the correct prefix and backport note. Run it from the target stable branch: bash scripts/backport.sh <sha> This is straightforward for clean cherry-picks, but ... if conflicts are produced, you will need to resolve them manually and add the prefix and backport note to the commit message yourself. Option 3: using the prepare-commit-msg git hook The scripts/prepare_commit_msg.py Python s ...
https://man.mtool.work/django/6.1/internals/contributing/committing-code.html
Django 0.96 リリースノート 8639
Django 0.96 リリースノート Django 0.96 へようこそ! The primary goal for 0.96 is a cleanup and stabilization of the features introduced in 0.95. There have been a few small backwards-incompatible changes since 0.95, but the upgrade process s ... necessary security fixes, it will not be actively maintained, and it will be removed in a future release of Django. Also, note that some features, like the new DATABASE_OPTIONS setting (see the databases documentation for details), are only availabl ... set" : MyModel . objects . all (), } urlpatterns = patterns ( "" , ( "^myview/$" , login_required ( object_list ), info )) Note that both syntaxes (strings and callables) are valid, and will continue to be valid for the foreseeable future. テストフレ ...
https://man.mtool.work/django/6.1/releases/0.96.html
Django 1.9.13 リリースノート 8639
Django 1.9.13 リリースノート April 4, 2017 Django 1.9.13 では、1.9.12 に存在した2つのセキュリティの問題と1つのバグを修正しました。今回のリリースが、1.9.x シリーズの最終リリースとなります。 CVE-2017-7233: Open redirect and possible XSS attac ... redirect to any other domain. The view no longer does any redirects as they don't provide any known, useful functionality. Note, however, that this view has always carried a warning that it is not hardened for production use and should be used only a ...
https://man.mtool.work/django/6.1/releases/1.9.13.html
PREV 1 2 3 4 5 6 7 NEXT