per page, with , order by , clip by
Results of 1 - 6 of about 6 for LazyObject (0.008 sec.)
ファイルの管理 12046
ファイルの管理 この文書では、ユーザがアップロードしたようなファイルに対する Django のファイルアクセス API について説明します。下位レベルの API は十分一般的なので、他の目的にも使えます。"静的ファイル" (JS や CSS など) を扱いたい場合は、 静的 ... e is evaluated when your model classes are loaded, if you need to override the STORAGES setting in tests, you should use a LazyObject subclass instead: from django.core.files.storage import storages from django.utils.functional import LazyObject class Othe ... rStorage ( LazyObject ): def _setup ( self ): self . _wrapped = storages [ "mystorage" ] my_storage = OtherStorage () class MyModel ( models . M ... odel ): upload = models . FileField ( storage = my_storage ) LazyObject はストレージの評価を実際に必要になるまで遅延させるため、 override_settings() の効果を反映できるようになります: @override_s ...
https://man.mtool.work/django/6.1/topics/files.html
Django 1.11.4 リリースノート 10108
Django 1.11.4 リリースノート August 1, 2017 Django 1.11.4 fixes several bugs in 1.11.3. バグ修正 Fixed a regression in 1.11.3 on Python 2 where non-ASCII format values for date/time widgets results in an empty value in the widget's HTML ( # ... ion() and difference() when combining with a queryset raising EmptyResultSet ( #28378 ). Fixed a regression in pickling of LazyObject on Python 2 when the wrapped object doesn't have __reduce__() ( #28389 ). Fixed crash in runserver 's autoreload with Pyth ...
https://man.mtool.work/django/6.1/releases/1.11.4.html
Django 1.2 リリースノート 9779
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 ... {% if and %} will throw a TemplateSyntaxError . Also, in is a new keyword and so is not a valid variable name in this tag. LazyObject LazyObject is an undocumented-but-often-used utility class used for lazily wrapping other objects of unknown type. In Djan ... es, it has been changed to use the standard Python introspection method, involving __members__ and __dir__() . If you used LazyObject in your own code and implemented the get_all_members() method for wrapped objects, you'll need to make a couple of changes ... not discoverable by normal mechanisms), you can simply remove the get_all_members() method. The default implementation on LazyObject will do the right thing. If you have more complex requirements for introspection, first rename the get_all_members() metho ...
https://man.mtool.work/django/6.1/releases/1.2.html
Coding style 9139
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 ... " ) However, if any setting is accessed before the settings.configure line, this will not work. (Internally, settings is a LazyObject which configures itself automatically when the settings are accessed if it has not already been configured). So, if there ... circumstances. Instead of the above code, a level of laziness or indirection must be used, such as django.utils.functional.LazyObject , django.utils.functional.lazy() or lambda . その他 Mark all strings for internationalization; see the i18n documentation ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.9 リリースノート 6873
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... migrate --fake-initial to more easily detect initial migrations. Added support for serialization of functools.partial and LazyObject instances. When supplying None as a value in MIGRATION_MODULES , Django will consider the app an app without migrations. W ...
https://man.mtool.work/django/6.1/releases/1.9.html
マイグレーション 6873
マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ ... h to pathlib.PurePosixPath os.PathLike instances, e.g. os.DirEntry , which are converted to str or bytes using os.fspath() LazyObject instances which wrap a serializable value Enumeration types (e.g. TextChoices or IntegerChoices ) instances 任意の Django ...
https://man.mtool.work/django/6.1/topics/migrations.html
PREV 1 NEXT