... TestCase ): def test_was_published_recently_with_future_question ( self ): """ was_published_recently() returns False for questions whose pub_date is in the future. """ time = timezone . now () + datetime . timedelta ( days = 30 ) future_question = Quest ... recent call last ) : File "/path/to/djangotutorial/polls/tests.py" , line 16 , in test_was_published_recently_with_future_question self.assertIs ( future_question.was_published_recently () , False ) AssertionError: True is not False --------------------- ... olls/tests.py ¶ def test_was_published_recently_with_old_question ( self ): """ was_published_recently() returns False for questions whose pub_date is older than 1 day. """ time = timezone . now () - datetime . timedelta ( days = 1 , seconds = 1 ) old_que ... ... TestCase ): def test_was_published_recently_with_future_question ( self ): """ was_published_recently() returns False for questions whose pub_date is in the future. """ time = timezone . now () + datetime . timedelta ( days = 30 ) future_question = Quest ... recent call last ) : File "/path/to/djangotutorial/polls/tests.py" , line 16 , in test_was_published_recently_with_future_question self.assertIs ( future_question.was_published_recently () , False ) AssertionError: True is not False --------------------- ... olls/tests.py ¶ def test_was_published_recently_with_old_question ( self ): """ was_published_recently() returns False for questions whose pub_date is older than 1 day. """ time = timezone . now () - datetime . timedelta ( days = 1 , seconds = 1 ) old_que ... ... discussing the Django framework and applications and projects that use it. This is also a good place to ask and answer any questions related to installing, using, or contributing to Django. Join the Django Discord server to discuss and answer questions. B ... ... しょう)。 チュートリアル を一通りやってみてください。 他の ドキュメント にも目を通して下さい。何か問題が起きたら、 質問 ask questions してみましょう。 Django を動かすには何が必要ですか? ¶ DjangoにはPythonが必要です。 Djangoの各バージョンで動作するPythonのバ ... ド 最新 ダウンロード 問題 質問 開発 データベース SQLite 公式 提供 マイクロ Download code ガイド チュートリアル ドキュメント questions 用途 ライブラリ 実験 環境 クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... discussing the Django framework and applications and projects that use it. This is also a good place to ask and answer any questions related to installing, using, or contributing to Django. Join the Django Discord server to discuss and answer questions. B ... ... は INSTALLED_APPS からモデルを自動的にインポートします。 シェルに入ったら データベース API の世界を探検してみましょう: # No questions are in the system yet. >>> Question . objects . all () <QuerySet []> # Create a new Question. # Support for time zones is ... the attributes, then calling save(). >>> q . question_text = "What's up?" >>> q . save () # objects.all() displays all the questions in the database. >>> Question . objects . all () <QuerySet [<Question: Question object (1)>]> ちょっと待ってください。 <Qu ... てみる ¶ 私たちが Question を登録したので、 Django は admin インデックスページにこれを表示すべきだということを知っています: "Questions" をクリックしましょう。questions のための "change list" ページが表示されます。このページにはデータベース中のすべての quest ... ... は INSTALLED_APPS からモデルを自動的にインポートします。 シェルに入ったら データベース API の世界を探検してみましょう: # No questions are in the system yet. >>> Question . objects . all () <QuerySet []> # Create a new Question. # Support for time zones is ... the attributes, then calling save(). >>> q . question_text = "What's up?" >>> q . save () # objects.all() displays all the questions in the database. >>> Question . objects . all () <QuerySet [<Question: Question object (1)>]> ちょっと待ってください。 <Qu ... てみる ¶ 私たちが Question を登録したので、 Django は admin インデックスページにこれを表示すべきだということを知っています: "Questions" をクリックしましょう。questions のための "change list" ページが表示されます。このページにはデータベース中のすべての quest ... ... official Forum の Using Django カテゴリは、使用方法に関する質問をするための優先される場所となりました。 This was used for questions regarding the installation, usage, or debugging of Django projects. django-users mailing archive django-developers ¶ 注釈 ... ... official Forum の Using Django カテゴリは、使用方法に関する質問をするための優先される場所となりました。 This was used for questions regarding the installation, usage, or debugging of Django projects. django-users mailing archive django-developers ¶ 注釈 ... ... しょう)。 チュートリアル を一通りやってみてください。 他の ドキュメント にも目を通して下さい。何か問題が起きたら、 質問 ask questions してみましょう。 Django を動かすには何が必要ですか? ¶ DjangoにはPythonが必要です。 Djangoの各バージョンで動作するPythonのバ ... 2026年10月08日