... くには、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 /et ... on を入力したときに新しいバージョンの Python が使われるように、 .profile ファイルの PATH 環境変数を変更する必要があります: export PATH = /Library/Frameworks/Python.framework/Versions/Current/bin: $PATH Postgres.app Postgres.app is a standalone PostgreS ... 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 ... ... 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 ... ... たいパレットを指定します。例えば、UnixやOS/XのBASHシェルで light パレットを指定するには、ターミナルで以下のように実行します: export DJANGO_COLORS = "light" 使用する色をカスタマイズすることもできます。Django は色が使われる役割(ロール)をいくつか指定してい ... てそれぞれの option は色を変更するオプションの一つです。複数の色の指定はセミコロンで区切ります。たとえば以下のようにします: export DJANGO_COLORS = "error=yellow/blue,blink;notice=magenta" これを指定すると、エラーは青地に黄色の点滅で表示され、通知はマゼン ... トを拡張して指定することもできます。色指定にパレット名を入れると、そのパレットが意味するすべての色が読み込まれます。つまり: export DJANGO_COLORS = "light;error=yellow/blue,blink;notice=magenta" これを指定すると、light カラーパレットのすべての色の使用が指 ... ... ags for examples of this. The dumpdata management command now accepts individual model names as arguments, allowing you to export the data just from particular models. There's a new safeseq template filter which works just like safe for lists, marking ... ... う場合、環境変数を予め指定しておくか、ユーティリティを起動する度に設定モジュールを明示的に渡します。 例 (Unix Bash シェル): export DJANGO_SETTINGS_MODULE = mysite.settings django-admin runserver 例 (Windows シェル): set DJANGO_SETTINGS_MODULE=mysite.set ... ... _wsgi とともに使うには? を参照してください。 開発環境では、 ~/.bashrc に次のような設定を追加する必要があるかもしれません。 export LANG = "en_US.UTF-8" フォームの送信 HTML フォームの送信は、難しい領域です。送信がエンコーディング情報を含むとは限らず、それ ... ... 23 ) >>> print ( pnt . srid ) None >>> pnt . srid = 4326 >>> pnt . srid 4326 出力プロパティ The properties in this section export the GEOSGeometry object into a different. This output may be in the form of a string, buffer, or even another object. GEOS ... 2026年10月08日