... ow validated regardless of DEBUG . For convenience, if ALLOWED_HOSTS is empty and DEBUG=True , the following variations of localhost are allowed ['localhost', '127.0.0.1', '::1'] . If your local settings file has your production ALLOWED_HOSTS value, you m ... ... ow validated regardless of DEBUG . For convenience, if ALLOWED_HOSTS is empty and DEBUG=True , the following variations of localhost are allowed ['localhost', '127.0.0.1', '::1'] . If your local settings file has your production ALLOWED_HOSTS value, you m ... ... cal machine: MAILERS = { "default" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBackend" , "OPTIONS" : { "host" : "localhost" , }, }, } Django abstracts the email sending process into an "email backend" class. メールのバックエンド lists the email ... pproaches. Changed in Django 6.1: In earlier releases, Django defaulted to sending email through an SMTP server running on localhost, using the now-deprecated EMAIL_BACKEND and related settings. バージョン 6.1 で非推奨: Until Django 2028, if the MAILERS s ... etting is not defined then the earlier behavior still applies: Django will default to using an SMTP server on localhost (but will issue deprecation warnings). Starting in Django 2028, attempts to send email without MAILERS defined will result ... ... ow validated regardless of DEBUG . For convenience, if ALLOWED_HOSTS is empty and DEBUG=True , the following variations of localhost are allowed ['localhost', '127.0.0.1', '::1'] . If your local settings file has your production ALLOWED_HOSTS value, you m ... ... マンドを実行して、動作を確認してください: / $ python manage.py runserver ...\> py manage.py runserver ブラウザで http://localhost:8000/polls/ にアクセスすると、 " Hello, world. You're at the polls index. " と表示されるのが確認できるでしょう。これはビュ ... ーの index で定義したものです。 ページが見つかりませんか? ここでエラーページが表示されたら、 http://localhost:8000/ ではなく、 http://localhost:8000/polls/ にアクセスしていることを確認してください。 基本的なリクエストとレスポンスのフ ... ... ーを起動します (すでに起動済みの場合は再起動します)。 / $ python manage.py runserver ...\> py manage.py runserver http://localhost:8000/polls/ をリロードすると、質問のリンクが緑色 (Django のスタイルです!) になり、スタイルシートが適切に読み込まれたことが ... 照を追加します。 polls/static/polls/style.css body { background : white url ( "images/background.png" ) no-repeat ; } http://localhost:8000/polls/ をリロードすると、読み込んだ背景画像がスクリーンの左上部に確認できるでしょう。 警告 {% static %} テンプレートタ ... ... $ django-admin dbshell -- -e "select user()" +----------------------+ | user() | +----------------------+ | djangonaut@localhost | +----------------------+ ...\> django-admin dbshell -- -e "select user()" +----------------------+ | user() | +--------- ... -------------+ | djangonaut@localhost | +----------------------+ 注釈 DATABASES のデータベース設定の OPTIONS 部分で設定されたすべてのオプションがコマンドラインク ... b8:1234:5678::9 上でポート 7000 を使用する場合: django-admin runserver [2001:0db8:1234:5678::9]:7000 IPv4 アドレスのホスト localhost 上でポート 8000 を使用する場合: django-admin runserver localhost:8000 IPv6 アドレスのホスト localhost 上でポート 8000 を使 ... ... has more information about setting MAILERS to use production email servers. By default, Django sends email from webmaster@localhost and root@localhost . However, many mail providers reject email from these addresses. To use different sender addresses, mo ... ... w code coverage: ルートディレクトリで python -m http.server を実行してみてください。( js_tests の中ではなく) Open http://localhost:8000/js_tests/tests.html in your web browser. Testing from the command line To run the tests from the command line, you ne ... ... stgresql" , "OPTIONS" : { "service" : "my_service" , "passfile" : ".my_pgpass" , }, } } .pg_service.conf [my_service] host=localhost user=USER dbname=NAME port=5432 .my_pgpass localhost:5432:NAME:USER:PASSWORD PostgreSQLバックエンドは OPTIONS の内容をキー ... snames.ora のない RAC やプラガブル (pluggable) なデータベースを使用する場合に必要です。 Easy Connect 文字列の例: "NAME" : "localhost:1521/orclpdb1" Full DSN 文字列の例: "NAME" : ( "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))" "(CONNEC ... 2026年10月08日