... #26627 ). Fixed HStoreField to raise a ValidationError instead of crashing on non-dictionary JSON input ( #26672 ). Fixed dbshell crash on PostgreSQL with an empty database name ( #26698 ). Fixed a regression in queries on a OneToOneField that has to_f ... ... QL を、実際には実行せずに出力します。これにより、SQL をカスタマイズしたり、マイグレーション フレームワークを使用できます。 dbshell django-admin dbshell USER や PASSWORD などの設定で指定されたコネクション パラメータを使用して、 ENGINE 設定で指定されたデー ... ostgreSQL では、次のように psql コマンドの -c フラグを使うことで、素の SQL クエリを直接実行できます。 / $ django-admin dbshell -- -c 'select current_user' current_user -------------- postgres (1 row) ...\> django-admin dbshell -- -c 'select current_ ... -------- postgres (1 row) MySQL/MariaDB では、次のように mysql の -e フラグを使用すると実行できます。 / $ django-admin dbshell -- -e "select user()" +----------------------+ | user() | +----------------------+ | djangonaut@localhost | +------------- ... ... ... a data loss possibility. Fixed a regression in Django 3.2 where the calling process environment would not be passed to the dbshell command on PostgreSQL ( #32687 ). Fixed a performance regression in Django 3.2 when building complex filters with subqueri ... ... オプション check コマンドラインオプション createcachetable コマンドラインオプション createsuperuser コマンドラインオプション dbshell コマンドラインオプション dumpdata コマンドラインオプション flush コマンドラインオプション inspectdb コマンドラインオプショ ... b_table_comment (Options の属性) db_tablespace (Field の属性) (Index の属性) (Options の属性) db_type() (Field のメソッド) dbshell django-admin command dbshell コマンドラインオプション -- --database deactivate() (django.utils.timezone モジュール) (djang ... 属性) django-admin command changepassword check clearsessions collectstatic compilemessages createcachetable createsuperuser dbshell diffsettings dumpdata findstatic flush help inspectdb loaddata makemessages makemigrations migrate ogrinspect optimizemigr ... ... nstead the parent. inspectdb now introspects DurationField for Oracle and PostgreSQL, and AutoField for SQLite. On Oracle, dbshell is wrapped with rlwrap , if available. rlwrap provides a command history and editing of keyboard input. The new makemigrat ... ... ルが作成されたことを伝えながら、既存のテーブル名を新しいテーブル名に変更します。既存のテーブル名と制約名は sqlmigrate または dbshell で確認できます。新しいテーブル名は中間モデルの _meta.db_table プロパティで確認できます。新しい through モデルは ForeignKey ... ... po files to compile. showmigrations --list now shows the applied datetimes when --verbosity is 2 and above. On PostgreSQL, dbshell now supports client-side TLS certificates. inspectdb now introspects OneToOneField when a foreign key has a unique or prim ... ... detected. The new returncode argument for CommandError allows customizing the exit status for management commands. The new dbshell -- ARGUMENTS option allows passing extra arguments to the command-line client for the database. The flush and sqlflush com ... ... go.db.backends logger. 管理コマンド The runserver management command now supports the --skip-checks option. On PostgreSQL, dbshell now supports specifying a password file. The shell command now respects sys.__interactivehook__ at startup. This allows lo ... 2026年10月08日