per page, with , order by , clip by
Results of 1 - 10 of about 17 for imports (0.005 sec.)
カスタム shell コマンドの作り方 14501
カスタム shell コマンドの作り方 Djangoの shell は、モデルと設定へのアクセスを提供する対話型の Python 環境であり、コードのテスト、クエリの実験、アプリケーションデータとのやりとりに役立ちます。 shell コマンドをカスタマイズすることで、機能を追 ... 参照してください。 自動インポートをカスタマイズする shell 管理コマンドの自動インポート動作をカスタマイズするには、 get_auto_imports() メソッドをオーバーライドします。このメソッドは、アプリケーションで利用可能なオブジェクトまたはモジュールのインポートパス ... のシーケンスを返す必要があります。例えば: polls/management/commands/shell.py from django.core.management.commands import shell class Command ( shell . Command ): def get_auto_imports ( self ): return super () . get_auto_imports () + [ "django.u ... に表示されます: 13 objects imported automatically: from django.db import connection, reset_queries, models from django.conf import settings from django.contrib.admin.models import LogEntry from django.contrib.auth.models import Group, Permission, User fr ...
https://man.mtool.work/django/6.1/howto/custom-shell.html
Coding style 11552
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 ... {**x, **y} ) or sequences ( [*a, *b] ). This improves performance, readability, and maintainability while reducing errors. Imports Use isort to automate import sorting using the guidelines below. Quick start: /  $ python -m pip install "isort >= 7.0. ... ort recursively from your current directory, modifying any files that don't conform to the guidelines. If you need to have imports out of order (to avoid a circular import, for example) use a comment like this: import module # isort:skip Put imports in ... y the full module name. Place all import module statements before from module import objects in each section. Use absolute imports for other Django components and a one-dot relative import ( from .foo import Bar ) for local components. Avoid multi-dot r ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.8.5 リリースノート 8724
Django 1.8.5 リリースノート October 3, 2015 Django 1.8.5 fixes several bugs in 1.8.4. バグ修正 Made the development server's autoreload more robust ( #24704 ). Fixed AssertionError in some delete queries with a model containing a field that ... del ( #25299 ). Fixed autocompletion for options of non- argparse management commands ( #25372 ). Alphabetized ordering of imports in from django.db import migrations, models statement in newly created migrations ( #25384 ). Fixed migrations crash on My ...
https://man.mtool.work/django/6.1/releases/1.8.5.html
Django 3.1 リリースノート 8604
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... uage() view is now based on the Accept HTTP header instead of the X-Requested-With HTTP header presence. The compatibility imports of django.core.exceptions.EmptyResultSet in django.db.models.query , django.db.models.sql , and django.db.models.sql.datas ... compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed. The compatibility imports of django.forms.utils.pretty_name() and django.forms.boundfield.BoundField in django.forms.forms are removed. The compatib ... ility imports of Context , ContextPopException , and RequestContext in django.template.base are removed. The compatibility import of dja ...
https://man.mtool.work/django/6.1/releases/3.1.html
GeoDjangoの管理コマンド 8362
GeoDjangoの管理コマンド inspectdb django-admin inspectdb django.contrib.gis が INSTALLED_APPS に入っている場合、 inspectdb 管理コマンドは GeoDjango のコマンドでオーバーライドされます。オーバーライドされたコマンドは空間を認識し、自動生成され ... nField が配置されます。 --name-field NAME_FIELD 与えられたフィールド名を返す __str__() メソッドをモデルに生成します。 --no-imports from django.contrib.gis.db import models のインポート文を抑制します。 --null NULL フィールド定義に null=True キーワードオプ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/commands.html
Django 1.2 リリースノート 8362
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 ... ns on how to do this are found in the CSRF docs. All of the CSRF has moved from contrib to core (with backwards compatible imports in the old locations, which are deprecated and will cease to be supported in Django 1.4). get_db_prep_*() methods on Field ... validating email addresses has been moved from django.form.fields to django.core.validators . You will need to update your imports if you are using it. Features deprecated in 1.2 Finally, Django 1.2 deprecates some features from earlier releases. These ... e and CsrfViewMiddleware , has likewise been deprecated. Also, the CSRF module has moved from contrib to core, and the old imports are deprecated, as described in the upgrading notes. Documentation removed The upgrade notes have been removed in current ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django 1.4 リリースノート 8242
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! 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.3 or older versions. We've a ... t management command. These fix some issues with the previous manage.py handling of Python import paths that caused double imports, trouble moving from development to deployment, and other difficult-to-debug path issues. The previous manage.py called fu ... .py urls.py If the same code is imported inconsistently (some places with the project prefix, some places without it), the imports will need to be cleaned up when switching to the new manage.py . Custom project and app templates The startapp and startpr ... to the django.contrib.auth.hashers module. Importing it from the old location will still work, but you should update your imports. The collectstatic management command now has a --clear option to delete all files at the destination before copying or li ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 1.7.1 リリースノート 8242
Django 1.7.1 リリースノート October 22, 2014 Django 1.7.1 fixes several bugs in 1.7. バグ修正 Allowed related many-to-many fields to be referenced in the admin ( #23604 ). Added a more helpful error message if you try to migrate an app with ... o generate migrations that work with both Python 2 and 3 ( #23455 ). Fixed MigrationWriter to handle builtin types without imports ( #23560 ). Fixed deepcopy on ErrorList ( #23594 ). Made the admindocs view to browse view details check if the view speci ...
https://man.mtool.work/django/6.1/releases/1.7.1.html
django-admin と manage.py 8121
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... e following common utilities are also imported: from django.db import connection , reset_queries , models from django.conf import settings from django.utils import timezone For a --verbosity of 2 or higher, the automatically imported objects will be lis ... ted. To disable automatic importing entirely, use the --no-imports flag. See the guide on customizing this behavior to add or remove automatic imports. Changed in Django 6.0: Automatic impo ... まないようにします。デフォルトでは PYTHONSTARTUP 環境変数か ~/.pythonrc.py スクリプトが指すスクリプトが読み込まれます。 --no-imports INSTALLED_APPS からモデルの自動インポートを無効にします。 --command COMMAND , -c COMMAND 以下のように、コマンドを文字列で渡 ...
https://man.mtool.work/django/6.1/ref/django-admin.html
LayerMapping データインポートユーティリティ 8000
LayerMapping データインポートユーティリティ LayerMapping クラスは、ベクトル空間データファイル (例: shapefile) の内容を GeoDjango モデルにマッピングする方法を提供します。 このユーティリティは、ベクターレイヤーからジオメトリとフィールドを取り ... ionary >>> lm = LayerMapping ( TestGeo , "test_poly.shp" , mapping ) >>> lm . save ( verbose = True ) # Save the layermap, imports the data. Saved: Name: 1 Saved: Name: 2 Saved: Name: 3 Here, LayerMapping transformed the three geometries from the shapef ...
https://man.mtool.work/django/6.1/ref/contrib/gis/layermapping.html
PREV 1 2 NEXT