... くには、Django の シリアライズ関数 を使います: from django.core import serializers from django.http import HttpResponse def export_as_json ( modeladmin , request , queryset ): response = HttpResponse ( content_type = "application/json" ) serializers . s ... を書くことです: from django.contrib.contenttypes.models import ContentType from django.http import HttpResponseRedirect def export_selected_objects ( modeladmin , request , queryset ): selected = queryset . values_list ( "pk" , flat = True ) ct = Conten ... tType . objects . get_for_model ( queryset . model ) return HttpResponseRedirect ( "/export/?ct= %s &ids= %s " % ( ct . pk , "," . join ( str ( pk ) for pk in selected ), ) ) 見ての通り、アクションはとても短いです。 ... ... くには、Django の シリアライズ関数 を使います: from django.core import serializers from django.http import HttpResponse def export_as_json ( modeladmin , request , queryset ): response = HttpResponse ( content_type = "application/json" ) serializers . s ... を書くことです: from django.contrib.contenttypes.models import ContentType from django.http import HttpResponseRedirect def export_selected_objects ( modeladmin , request , queryset ): selected = queryset . values_list ( "pk" , flat = True ) ct = Conten ... tType . objects . get_for_model ( queryset . model ) return HttpResponseRedirect ( "/export/?ct= %s &ids= %s " % ( ct . pk , "," . join ( str ( pk ) for pk in selected ), ) ) 見ての通り、アクションはとても短いです。 ... ... eds to be included in the LD_LIBRARY_PATH variable. For example, the user could place the following in their bash profile: export LD_LIBRARY_PATH = /usr/local/lib システムライブラリのパスを設定する ¶ On GNU/Linux systems, there is typically a file in / ... on を入力したときに新しいバージョンの Python が使われるように、 .profile ファイルの PATH 環境変数を変更する必要があります: export PATH = /Library/Frameworks/Python.framework/Versions/Current/bin: $PATH Postgres.app ¶ Postgres.app is a standalone Postgr ... ash_profile に以下を追加してください。 X.Y をインストールした Postgres.app の PostgreSQL のバージョンに置き換えてください: export PATH = $PATH :/Applications/Postgres.app/Contents/Versions/X.Y/bin ターミナルプロンプトで which psql と入力して、パスが正し ... ... eds to be included in the LD_LIBRARY_PATH variable. For example, the user could place the following in their bash profile: export LD_LIBRARY_PATH = /usr/local/lib システムライブラリのパスを設定する ¶ On GNU/Linux systems, there is typically a file in / ... on を入力したときに新しいバージョンの Python が使われるように、 .profile ファイルの PATH 環境変数を変更する必要があります: export PATH = /Library/Frameworks/Python.framework/Versions/Current/bin: $PATH Postgres.app ¶ Postgres.app is a standalone Postgr ... ash_profile に以下を追加してください。 X.Y をインストールした Postgres.app の PostgreSQL のバージョンに置き換えてください: export PATH = $PATH :/Applications/Postgres.app/Contents/Versions/X.Y/bin ターミナルプロンプトで which psql と入力して、パスが正し ... ... INITIALIZE_FORK_SAFETY environment variable, for example: $ OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES ./runtests.py Or add export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES to your shell's startup file (e.g. ~/.profile ). Many test failures with UnicodeEn ... et install locales $ dpkg-reconfigure locales You can resolve this for macOS systems by configuring your shell's locale: $ export LANG = "en_US.UTF-8" $ export LC_ALL = "en_US.UTF-8" Run the locale command to confirm the change. Optionally, add those e ... ... INITIALIZE_FORK_SAFETY environment variable, for example: $ OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES ./runtests.py Or add export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES to your shell's startup file (e.g. ~/.profile ). Many test failures with UnicodeEn ... et install locales $ dpkg-reconfigure locales You can resolve this for macOS systems by configuring your shell's locale: $ export LANG = "en_US.UTF-8" $ export LC_ALL = "en_US.UTF-8" Run the locale command to confirm the change. Optionally, add those e ... ... odeEncodeError が発生する場合は、Apache が UTF-8 エンコーディングをサポートするように設定されていることを確認してください: export LANG = 'en_US.UTF-8' export LC_ALL = 'en_US.UTF-8' この設定はふつう /etc/apache2/envvars で可能です。 代わりに、 mod_wsgi ... ... odeEncodeError が発生する場合は、Apache が UTF-8 エンコーディングをサポートするように設定されていることを確認してください: export LANG = 'en_US.UTF-8' export LC_ALL = 'en_US.UTF-8' この設定はふつう /etc/apache2/envvars で可能です。 代わりに、 mod_wsgi ... ... f you lack CNA credentials, email cna@djangoproject.com with a request.) Enable virtual environment with cvelib installed. Export user information: $ export CVE_USER = <user-email>@djangoproject.com CVE_ORG = DSF Reserve: $ cve --interactive reserve <q ... ... f you lack CNA credentials, email cna@djangoproject.com with a request.) Enable virtual environment with cvelib installed. Export user information: $ export CVE_USER = <user-email>@djangoproject.com CVE_ORG = DSF Reserve: $ cve --interactive reserve <q ... 2026年10月08日