per page, with , order by , clip by
Results of 1 - 10 of about 176 for use case (0.005 sec.)
use (488), case (210)
条件式 — Django 6.1 ドキュメント 16915
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 条件式 ¶ Conditional expressions let you use if ... elif ... else logic within filters, annotations, aggregations, and updates. A conditional expres ... ccount_type = Client . GOLD , then = "name" ) >>> When ( account_type = Client . GOLD , then = F ( "name" )) >>> # You can use field lookups in the condition >>> from datetime import date >>> When ( ... registered_on__gt = date ( 2014 , 1 , 1 ), ... ... 性があります。これは 2 つの方法で解決できます: >>> When ( then__exact = 0 , then = 1 ) >>> When ( Q ( then = 0 ), then = 1 ) Case ¶ class Case ( * cases , ** extra ) [ソース] ¶ Case() 式は Python の if ... elif ... else 文のようなものです。指定された W ... オブジェクトの result 式が返されます。 例: >>> >>> from datetime import date , timedelta >>> from django.db.models import Case , Value , When >>> Client . objects . create ( ... name = "Jane Doe" , ... account_type = Client . REGULAR , ... registere ...
https://man.mtool.work/django/6.1/ref/models/conditional-expressions.html
条件式 — Django 6.1 ドキュメント 16915
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 条件式 ¶ Conditional expressions let you use if ... elif ... else logic within filters, annotations, aggregations, and updates. A conditional expres ... ccount_type = Client . GOLD , then = "name" ) >>> When ( account_type = Client . GOLD , then = F ( "name" )) >>> # You can use field lookups in the condition >>> from datetime import date >>> When ( ... registered_on__gt = date ( 2014 , 1 , 1 ), ... ... 性があります。これは 2 つの方法で解決できます: >>> When ( then__exact = 0 , then = 1 ) >>> When ( Q ( then = 0 ), then = 1 ) Case ¶ class Case ( * cases , ** extra ) [ソース] ¶ Case() 式は Python の if ... elif ... else 文のようなものです。指定された W ... オブジェクトの result 式が返されます。 例: >>> >>> from datetime import date , timedelta >>> from django.db.models import Case , Value , When >>> Client . objects . create ( ... name = "Jane Doe" , ... account_type = Client . REGULAR , ... registere ...
https://man.mtool.work/django/6.1/ref/models/conditional-expressions.html
Django 1.8.2 リリースノート — Django 6.1 ドキュメント 13579
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8.2 リリースノート ¶ May 20, 2015 Django 1.8.2 fixes a security issue and several bugs in 1.8.1. Fixed session flushing in the cached_db ba ... string rather than None . An empty string is treated as a valid session key and the session cookie is set accordingly. Any users with an empty string in their session cookie will use the same session store. session.flush() is called by django.contri ... b.auth.logout() and, more seriously, by django.contrib.auth.login() when a user switches accounts. If a user is logged in and logs in again to a different account (without logging out) the session is f ... to that account. バグ修正 ¶ Fixed check for template engine alias uniqueness ( #24685 ). Fixed crash when reusing the same Case instance in a query ( #24752 ). Corrected join promotion for Case expressions. For example, annotating a query with a Case ...
https://man.mtool.work/django/6.1/releases/1.8.2.html
Django 1.8.2 リリースノート — Django 6.1 ドキュメント 13304
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8.2 リリースノート ¶ May 20, 2015 Django 1.8.2 fixes a security issue and several bugs in 1.8.1. Fixed session flushing in the cached_db ba ... string rather than None . An empty string is treated as a valid session key and the session cookie is set accordingly. Any users with an empty string in their session cookie will use the same session store. session.flush() is called by django.contri ... b.auth.logout() and, more seriously, by django.contrib.auth.login() when a user switches accounts. If a user is logged in and logs in again to a different account (without logging out) the session is f ... to that account. バグ修正 ¶ Fixed check for template engine alias uniqueness ( #24685 ). Fixed crash when reusing the same Case instance in a query ( #24752 ). Corrected join promotion for Case expressions. For example, annotating a query with a Case ...
https://man.mtool.work/django/6.1/releases/1.8.2.html
Coding style — Django 6.1 ドキュメント 12686
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... code review it allows the reviewer to focus on the change itself, and it can also help to reduce the number of CI runs. To use the tool, first install pre-commit and then the git hooks: /  $ python -m pip install pre-commit $ pre-commit install . ... e. We recommend using a text editor with EditorConfig support to avoid indentation and whitespace issues. The Python files use 4 spaces for indentation and the HTML files use 2 spaces. Unless otherwise specified, follow PEP 8 . Use flake8 to check f ... guide, f-strings should use only plain variable and property access, with prior local variable assignment for more complex cases: # Allowed f "hello { user } " f "hello { user . name } " f "hello { self . user . name } " # Disallowed f "hello { get_u ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Porting your apps from Django 0.96 to 1.0 — Django 6.1 ドキュメント 12307
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 ... の手助けをすることに重点を置いています。 Common changes ¶ This section describes the changes between 0.96 and 1.0 that most users will need to make. Use Unicode ¶ Change string literals ( 'foo' ) into Unicode literals ( u'foo' ). Django now uses Unic ... ode strings throughout. In most places, raw strings will continue to work, but updating to use Unicode literals will prevent some obscure problems. See Unicode データ for full details. モデル ¶ Common changes to your ... row no longer calls save() ¶ Previously, loading a row automatically ran the model's save() method. This is no longer the case, so any fields (for example: timestamps) that were auto-populated by a save() now need explicit values in any fixture. 設定 ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 12275
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... Python 2.6. Django 1.7 is the first release to support Python 3.4. This change should affect only a small number of Django users, as most operating-system vendors today are shipping Python 2.7 or newer as their default version. If you're still using ... migrations; in particular, Django will no longer emulate rollbacks on non-transactional databases or inside TransactionTestCase unless specifically requested . It is not advised to have apps without migrations depend on (have a ForeignKey or ManyToMa ... d to models. A singleton known as the "app cache" dealt with both installed applications and models. The models module was used as an identifier for applications in many APIs. As the concept of Django applications matured, this code showed some shor ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 12275
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... Python 2.6. Django 1.7 is the first release to support Python 3.4. This change should affect only a small number of Django users, as most operating-system vendors today are shipping Python 2.7 or newer as their default version. If you're still using ... migrations; in particular, Django will no longer emulate rollbacks on non-transactional databases or inside TransactionTestCase unless specifically requested . It is not advised to have apps without migrations depend on (have a ForeignKey or ManyToMa ... d to models. A singleton known as the "app cache" dealt with both installed applications and models. The models module was used as an identifier for applications in many APIs. As the concept of Django applications matured, this code showed some shor ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.11.2 リリースノート — Django 6.1 ドキュメント 12218
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.11.2 リリースノート ¶ June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translation ... s from Transifex are incorporated. Minor feature ¶ The new LiveServerTestCase.port attribute reallows the use case of binding to a specific port following the bind to port zero change in Django 1.11. ... Moved the ImageField file extension validation added in Django 1.11 from the model field to the form field to reallow the use case of storing images without an extension ( #28242 ). 目次 Django 1.11.2 リリースノート Minor feature バグ修正 前のトピッ ... リースノート 次のトピックへ Django 1.11.1 リリースノート 関連キーワード Fixed crash model port detection regression feature use case contrib rather utils safe invalid fields argument adding validation added create reallow date extension リリースノート ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
Coding style — Django 6.1 ドキュメント 12190
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... code review it allows the reviewer to focus on the change itself, and it can also help to reduce the number of CI runs. To use the tool, first install pre-commit and then the git hooks: /  $ python -m pip install pre-commit $ pre-commit install . ... e. We recommend using a text editor with EditorConfig support to avoid indentation and whitespace issues. The Python files use 4 spaces for indentation and the HTML files use 2 spaces. Unless otherwise specified, follow PEP 8 . Use flake8 to check f ... guide, f-strings should use only plain variable and property access, with prior local variable assignment for more complex cases: # Allowed f "hello { user } " f "hello { user . name } " f "hello { self . user . name } " # Disallowed f "hello { get_u ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
PREV 1 2 3 4 5 6 7 8 9 10 NEXT