... records, including when SESSION_SAVE_EVERY_REQUEST is active. Additionally, the contrib.sessions.backends.base.SessionBase.flush() and cache_db.SessionStore.flush() methods have been modified to avoid creating a new empty session. Maintainers of third ... ... records, including when SESSION_SAVE_EVERY_REQUEST is active. Additionally, the contrib.sessions.backends.base.SessionBase.flush() and cache_db.SessionStore.flush() methods have been modified to avoid creating a new empty session. Maintainers of third ... ... 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.contrib.auth.logout() and, more seriously, by django.contrib.auth.login() when a user switches accou ... nts. If a user is logged in and logs in again to a different account (without logging out) the session is flushed to avoid reuse. After the session is flushed (and its session key becomes '' ) the account details are set on the sessio ... ... mands. The new dbshell -- ARGUMENTS option allows passing extra arguments to the command-line client for the database. The flush and sqlflush commands now include SQL to reset sequences on SQLite. モデル The new ExtractIsoWeekDay function extracts ISO ... peration . QuerySet.bulk_create() now sets the primary key on objects when using MariaDB 10.5+. The DatabaseOperations.sql_flush() method now generates more efficient SQL on MySQL by using DELETE instead of TRUNCATE statements for tables which don't r ... unning the system checks on databases not referenced by tests . TransactionTestCase teardown is now faster on MySQL due to flush command improvements. As a side effect the latter doesn't automatically reset sequences on teardown anymore. Enable Transa ... ... alls to management services in your code now need to use call_command . For example, if you have some test code that calls flush and load_data: from django.core import management management . flush ( verbosity = 0 , interactive = False ) management . ... erbosity = 0 ) ...you'll need to change this code to read: from django.core import management management . call_command ( "flush" , verbosity = 0 , interactive = False ) management . call_command ( "loaddata" , "test_data" , verbosity = 0 ) Subcommand ... t_value connection.ops.pk_default_value backend.get_random_function_sql connection.ops.random_function_sql backend.get_sql_flush connection.ops.sql_flush backend.get_sql_sequence_reset connection.ops.sequence_reset_sql backend.get_start_transaction_sq ... ... ラインオプション createsuperuser コマンドラインオプション dbshell コマンドラインオプション dumpdata コマンドラインオプション flush コマンドラインオプション inspectdb コマンドラインオプション loaddata コマンドラインオプション migrate コマンドラインオプシ ... ョン remove_stale_contenttypes コマンドラインオプション showmigrations コマンドラインオプション sqlflush コマンドラインオプション sqlmigrate コマンドラインオプション sqlsequencereset コマンドラインオプション --debug-mode test コ ... shell コマンドラインオプション --no-input collectstatic コマンドラインオプション createsuperuser コマンドラインオプション flush コマンドラインオプション makemigrations コマンドラインオプション migrate コマンドラインオプション squashmigrations コマンド ... ... す。たとえば、データを圧縮された JSON ファイルとして出力するには、次のようにします: django-admin dumpdata -o mydata.json.gz flush django-admin flush データベースからすべてのデータを削除し、同期後のハンドラを再実行します。マイグレーションが適用されたテー ... プリの依存関係も含めることができます。 --database DATABASE 検査するデータベースを指定します。デフォルトは default です。 sqlflush django-admin sqlflush flush コマンドで実行される SQL 文を表示します。 --database DATABASE SQLを表示するデータベースを指定し ... 受け付ける引数のリスト。引数は引数パーサに渡されるので、コマンドラインと同じスタイルで使用できます。たとえば、 call_command('flush', '--verbosity=0') のようにします。 **options コマンドラインで受け付ける名前付きオプション。オプションは引数パーサを起動す ... ... ation cascade deletion ( #22998 ). Fixed transaction handling when specifying non-default database in createcachetable and flush ( #23089 ). Fixed the "ORA-01843: not a valid month" errors when using Unicode with older versions of Oracle server ( #202 ... ... スキーママイグレーション に関するページを参照してください。 データが消えてもかまわないのなら、 manage.py ユーティリティの flush オプションを利用することで、データベースを migrate コマンドが実行された直後と同じ状態にすることができます。 Django のモデル ... ... 2411 ). Modified migrations dependency algorithm to avoid possible infinite recursion. Fixed a UnicodeDecodeError when the flush error message contained Unicode characters ( #22882 ). Reinstated missing CHECK SQL clauses which were omitted on some bac ... 2026年10月08日