per page, with , order by , clip by
Results of 1 - 10 of about 58 for above (0.031 sec.)
Fetch modes 12339
Fetch modes New in Django 6.1. When accessing model fields that were not loaded as part of the original query, Django will fetch that field's data from the database. You can customize the behavior of this fetching with a fetch mode , making ... mode. FETCH_ONE Fetches the missing field for the current instance only. This is the default mode. Using FETCH_ONE for the above example would use: 1 query to fetch books N queries, where N is the number of books, to fetch the missing author field …fo ... y need it for all instances in the same batch, since you'll likely process them all identically. Using FETCH_PEERS for the above example would use: 1 query to fetch books 1 query to fetch all missing author fields for the batch of books …for a total o ... leaks where some peer instances are discarded. FETCH_RAISE Raises a FieldFetchBlocked exception. Using FETCH_RAISE for the above example would raise an exception at the access of book.author , like: FieldFetchBlocked ( "Fetching of Primary.value block ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
Django 1.5 リリースノート 11797
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! 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.4 or older versions. We'v ... rrectly (Django considered "myview" to be a literal name of a view, not a template variable named myview ). Django 1.3 and above introduced the {% load url from future %} syntax to bring in the corrected behavior where myview was seen as a variable. T ... future %} you can simply remove that line under Django 1.5 Python バージョン間の互換性 Django 1.5 requires Python 2.6.5 or above, though we highly recommend Python 2.7.3 or above. Support for Python 2.5 and below has been dropped. This change should a ... .5 supports that alpha release. Python 3 support Django 1.5 introduces support for Python 3 - specifically, Python 3.2 and above. This comes in the form of a single codebase; you don't need to install a different version of Django on Python 3. This me ...
https://man.mtool.work/django/6.1/releases/1.5.html
Working with Git and GitHub 11255
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 ... ket 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 using git rebase ... you will need to force-push your branch: git push --force-with-lease origin ticket_xxxxx Rebasing branches In the example above, you created two commits, the "Fixed #xxxxx -- ..." commit and the "Added two more tests ..." commit. We do not want to ha ... he history of your branch you can squash the commits into one by using interactive rebase: git rebase -i HEAD~2 The HEAD~2 above is shorthand for two latest commits. The above command will open an editor showing the two commits, prefixed with the word ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
Django 1.6 リリースノート 9909
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 ... deprecation process for some features . Python バージョン間の互換性 Django 1.6, like Django 1.5, requires Python 2.6.5 or above. Python 3 is also officially supported. We highly recommend the latest minor release for each supported Python series (2.6 ... er GeoDjango custom test runner This is for developers working on the GeoDjango application itself and related to the item above about changes in the test runners: The django.contrib.gis.tests.GeoDjangoTestSuiteRunner test runner has been removed and ... to avoid duplicating it when upgrading to Django 1.6. The following template in Django 1.6 will render identically to the above template in Django 1.5, except that the colon will appear inside the <label> element. {{ form.my_field.label_tag }} {{ for ...
https://man.mtool.work/django/6.1/releases/1.6.html
アグリゲーション (集計) 9909
アグリゲーション (集計) Djangoのデータベース抽象API のトピックガイドでは、個別のオブジェクトの作成、取得、削除を行うDjangoのクエリの使い方を説明しました。しかし、オブジェクトのコレクションを 集計 (アグリゲーション) した値や、集計することによ ... ublisher: SalamiPress>, ...]> >>> pubs [ 0 ] . num_books 73 # Each publisher, with a separate count of books with a rating above and below 5 >>> from django.db.models import Q >>> above_5 = Count ( "book" , filter = Q ( book__rating__gt = 5 )) >>> bel ... book" , filter = Q ( book__rating__lte = 5 )) >>> pubs = Publisher . objects . annotate ( below_5 = below_5 ) . annotate ( above_5 = above_5 ) >>> pubs [ 0 ] . above_5 23 >>> pubs [ 0 ] . below_5 12 # The top 5 publishers, in order by number of books. ... )) {'pages_per_author__avg': 532.57143333} Other supported databases do not encounter the OperationalError in the example above because they can detect the functional dependency. In general, AnyValue is useful when dealing with select list columns th ...
https://man.mtool.work/django/6.1/topics/db/aggregation.html
メールを送信する 9367
メールを送信する 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 ... ng process into an "email backend" class. メールのバックエンド lists the email backends that come with Django. The example above uses Django's SMTP email backend , which sends using the standard SMTP protocol. This backend is useful for many productio ... eded so the comma isn't read as separating two different addresses. A fixed address, written out by hand as in the example above, is safe, but composing one from variable parts (especially untrusted input) needs more care. 警告 Never use string format ... for preventing this when constructing email addresses from user-supplied input, as described in Formatting email addresses above. Another (perhaps better understood) attack, CRLF injection, uses carriage return and line feed characters to insert addit ...
https://man.mtool.work/django/6.1/topics/email.html
GIS QuerySet API リファレンス 8548
GIS QuerySet API リファレンス 空間のルックアップ (Spatial Lookup) このセクションの空間ルックアップは GeometryField と RasterField 用です。 For an introduction, see the spatial lookups introduction . For an overview of what lookups are compa ... objects . filter ( poly__overlaps_right = geom ) PostGIS では下記の SQL と同等です: SELECT ... WHERE poly &> geom overlaps_above 利用可能なDB : PostGIS , PGRaster (Conversion) ジオメトリフィールドのバウンディングボックスがルックアップジオメトリのバウン ... ディングボックスと重なっているか、または上にあるかどうかをテストします。 実装例: Zipcode . objects . filter ( poly__overlaps_above = geom ) PostGIS では下記の SQL と同等です: SELECT ... WHERE poly |&> geom overlaps_below 利用可能なDB : PostGIS , PGRaste ... bjects . filter ( poly__overlaps_below = geom ) PostGIS では下記の SQL と同等です: SELECT ... WHERE poly &<| geom strictly_above 利用可能なDB : PostGIS , PGRaster (Conversion) ジオメトリフィールドのバウンディングボックスが、ルックアップジオメトリのバウ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geoquerysets.html
Django 0.96 リリースノート 8548
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 ... this used to work: # Find text containing a single backslash MyModel . objects . filter ( text__contains = " \\\\ " ) The above is now incorrect, and should be rewritten as: # Find text containing a single backslash MyModel . objects . filter ( text_ ... d anyone still using the old version of django.forms at that time will need to change their import statements as described above. The next release after that will completely remove django.oldforms . Although the newforms library will continue to evolv ...
https://man.mtool.work/django/6.1/releases/0.96.html
Django 1.1.3 リリースノート 8548
Django 1.1.3 リリースノート Django 1.1.3 へようこそ! This is the third "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. With one exception, Django 1.1.3 maintains backwards compa ... cross relations which have been explicitly allowed by the application developer using the preexisting mechanism mentioned above. This is backwards-incompatible for any users relying on the prior ability to insert arbitrary lookups. ...
https://man.mtool.work/django/6.1/releases/1.1.3.html
Django 1.2 リリースノート 8548
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... ibrary and the new format localization framework. Backwards-incompatible changes in 1.2 Wherever possible the new features above have been introduced in a backwards-compatible manner per our API stability policy policy. This means that practically all ... ion, first rename the get_all_members() method to __dir__() . This is the standard introspection method for Python 2.6 and above. If you require support for Python versions earlier than 2.6, add the following code to the class: __members__ = property ... tically inserted CSRF tokens into POST forms in outgoing pages, has been deprecated in favor of a template tag method (see above), and will be removed completely in Django 1.4. CsrfMiddleware , which includes the functionality of CsrfResponseMiddlewar ...
https://man.mtool.work/django/6.1/releases/1.2.html
PREV 1 2 3 4 5 6 NEXT