per page, with , order by , clip by
Results of 1 - 10 of about 30 for Replace (0.004 sec.)
Porting your apps from Django 0.96 to 1.0 14166
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 ... maxlength to max_length Rename your maxlength argument to max_length (this was changed to be consistent with form fields): Replace __str__ with __unicode__ Replace your model's __str__ function with a __unicode__ method, and make sure you use Unicode ( ... n't have to worry about inline editing until you get to the admin section, below. For now, remove all references to core . Replace class Admin: with admin.py Remove all your inner class Admin declarations from your models. They won't break anything if y ... ically, this means you'll need to rewrite all of your class Admin declarations. You've already seen in models above how to replace your class Admin with an admin.site.register() call in an admin.py file. Below are some more details on how to rewrite tha ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Migrating email to mailers 11063
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 ... n() . A new using argument replaces the earlier connection in Django functions that send email. This guide provides details on migrating existing projects to ... ailable. If not (and if there are no alternatives to that package), you will need to remove MAILERS from your settings and replace it with the equivalent deprecated email settings until the package has been updated. If those errors are coming from your ... he other sections in this migration guide for recommended updates. Replacing get_connection() and connection arguments The replacements for the deprecated mail.get_connection() function and connection arguments to other mail functions depend on how and ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Django 2.1.15 リリースノート 9893
Django 2.1.15 リリースノート 2019年12月2日 Django 2.1.15 は 2.1.14 に含まれるセキュリティ脆弱性とデータ損失のバグを修正しています。 CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin displaying ... Django's safe by default philosophy. For the time being, developers whose applications are affected by this change should replace the use of inlines in read-only parents with custom forms and views that explicitly implement the desired functionality. I ...
https://man.mtool.work/django/6.1/releases/2.1.15.html
Django 6.1 release notes 9893
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! 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 6.0 or earlier. We've begun the ... ailers[alias] . See メールを送信する for more details. MAILERS is not yet enabled by default in existing projects. It will replace EMAIL_BACKEND and related EMAIL_* settings in Django 7.0. Until then, the older settings will continue to work but will is ... tag name as the first positional argument. The undocumented ChangeList.has_related_field_in_list_display() method has been replaced with ChangeList.get_select_related_fields() . In order to improve accessibility, the admin's breadcrumbs are now rendered ... PORT , EMAIL_USE_TLS , EMAIL_USE_SSL , EMAIL_SSL_CERTFILE , EMAIL_SSL_KEYFILE , and EMAIL_TIMEOUT settings are deprecated. Replace them with a MAILERS configuration dictionary as described in Migrating email to mailers . mail.get_connection() is depreca ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django 2.2.8 リリースノート 9503
Django 2.2.8 リリースノート 2019年12月2日 Django 2.2.8 fixes a security issue, several bugs in 2.2.7, and adds compatibility with Python 3.8. CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin d ... Django's safe by default philosophy. For the time being, developers whose applications are affected by this change should replace the use of inlines in read-only parents with custom forms and views that explicitly implement the desired functionality. I ...
https://man.mtool.work/django/6.1/releases/2.2.8.html
Submitting contributions 9114
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 ... ccurate, misleading, or fictitious content. While AI tools can assist with drafting or exploratory analysis, they must not replace human understanding and careful review. If you use AI tools while preparing a contribution, you must: Disclose which AI to ... ws (for example GitHub Copilot or similar tools) on pull requests submitted to the Django repository. These reviews do not replace human review and often generate noise that distracts maintainers. You are free to use such tools in your own fork before s ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/submitting...
Django 1.6 リリースノート 9114
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... g the prefix of the form. Raw queries ( Manager.raw() or cursor.execute() ) can now use the "pyformat" parameter style, where placeholders in the query are given as '%(name)s' and the parameters are passed as a dictionary rather than a list (except on S ... , this may result in double-quoting. If this happens, simply remove the URL quoting from your code. You will also have to replace special characters in URLs used in assertRedirects() with their encoded versions. Storage of IP addresses in the comments ... e database backend. Now, across all backends, you only need to double literal percent characters if you are also providing replacement parameters. For example: # No parameters, no percent doubling cursor . execute ( "SELECT foo FROM bar WHERE baz = '30% ...
https://man.mtool.work/django/6.1/releases/1.6.html
高度なチュートリアル: 再利用可能アプリの書き方 8724
高度なチュートリアル: 再利用可能アプリの書き方 この高度なチュートリアルは、 チュートリアル その8 が終わったところから始まります。Web投票アプリケーションを、新しいプロジェクトで再利用でき、他の人に共有できる独立した Python のパッケージへと変 ... build-backend = "setuptools.build_meta" [project] name = "django-polls" version = "0.1" dependencies = [ "django>=X.Y" , # Replace "X.Y" as appropriate ] description = "A Django app to conduct web-based polls." readme = "README.rst" license = "BSD-3-Cla ... mple.com" }, ] classifiers = [ "Environment :: Web Environment" , "Framework :: Django" , "Framework :: Django :: X.Y" , # Replace "X.Y" as appropriate "Intended Audience :: Developers" , "Operating System :: OS Independent" , "Programming Language :: P ...
https://man.mtool.work/django/6.1/intro/reusable-apps.html
データベース関数 8724
データベース関数 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 ... bjects . update ( name = Repeat ( "name" , 3 )) 1 >>> print ( Author . objects . get ( alias = "j" ) . name ) JohnJohnJohn Replace class Replace ( expression , text , replacement = Value('') , ** extra ) [ソース] expression 内で text を replacement で置 ... の引数は大文字小文字を区別します。 使用例: >>> from django.db.models import Value >>> from django.db.models.functions import Replace >>> Author . objects . create ( name = "Margaret Johnson" ) >>> Author . objects . create ( name = "Margaret Smith" ) >>> ... Author . objects . update ( name = Replace ( "name" , Value ( "Margaret" ), Value ( "Margareth" ))) 2 >>> Author . objects . values ( "name" ) <QuerySet [{'name': 'M ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
ファイルのアップロード 8724
ファイルのアップロード Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト/レスポンス オブジェクト を参照してください)。ここでは、ファイルがどのようにディスクとメモリに ... orms import FileFieldForm class FileFieldFormView ( FormView ): form_class = FileFieldForm template_name = "upload.html" # Replace with your template. success_url = "..." # Replace with your URL or reverse(). def form_valid ( self , form ): files = form ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
PREV 1 2 3 NEXT