... cts . create ( name = "Second post" , tags = [ "thoughts" ]) >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> Post . objects . filter ( tags__contains = [ "thoughts" ]) <QuerySet [<Post: First post>, <Post: Second ... cts . create ( name = "Second post" , tags = [ "thoughts" ]) >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> Post . objects . filter ( tags__contained_by = [ "thoughts" , "django" ]) <QuerySet [<Post: First post> ... , <Post: Second post>]> >>> Post . objects . filter ( tags__contained_by = [ "thoughts" , "django" , "tutorial" ]) <QuerySet [<Post: First post>, <Post: Second post>, <Post: Third post>]> overlap データが渡された値といずれか一致するオ ... ... ... ances When traversing relations, the ORM will avoid re-fetching objects that were previously loaded. For example, with the tutorial's models: >>> first_poll = Poll . objects . all ()[ 0 ] >>> first_choice = first_poll . choice_set . all ()[ 0 ] >>> first ... objects preserve the Z dimension. Support for PostGIS 2.0 has been added and support for GDAL < 1.5 has been dropped. New tutorials Additions to the docs include a revamped Tutorial 3 and a new tutorial on testing . A new section, "Advanced Tutorials", ... ... tutorial を提供しています (たくさんあるセットアップ方法の一例です)。以下のドキュメントは、Django を uWSGI と統合する方法に焦点を当て ... ... g tests and building documentation If any of these are unfamiliar, see Djangoにはじめて貢献する for a longer, step-by-step tutorial. Set up Fork the repository on GitHub, clone your fork to your machine, and configure a remote reference to Django's upstr ... ... loned copy of Django in editable mode . Set up a Django project outside the source tree (you can use the first part of the tutorial for guidance). With this setup, any changes made to the Django checkout will take effect immediately in the test project, ... ... stead of the source. The source model is accessible on the related_model attribute instead. Consider this example from the tutorial in Django 1.8: >>> p = Poll . objects . get ( pk = 1 ) >>> p . _meta . get_all_related_objects () [<ManyToOneRel: polls.ch ... erns ( "myapp.views" , url ( "^$" , "myview" ), url ( "^other/$" , "otherview" ), ) In the modern era, we have updated the tutorial to instead recommend importing your views module and referencing your view functions (or classes) directly. This has a num ... ... Hub . Second, create and activate a virtual environment. If you're not familiar with how to do that, read our contributing tutorial . Next, clone your fork, install some requirements, and run the tests: / $ git clone https://github.com/YourGitHubName ... ... れませんね。 プロジェクトと再利用可能アプリ 前のチュートリアルを終えると、プロジェクトはこのようになっているはずです: djangotutorial/ manage.py mysite/ __init__.py settings.py urls.py asgi.py wsgi.py polls/ __init__.py admin.py apps.py migrations/ __init_ ... css templates/ polls/ detail.html index.html results.html tests.py urls.py views.py templates/ admin/ base_site.html djangotutorial/templates は チュートリアル7 で作成し、 polls/templates は チュートリアル3 で作成しました。今は、なぜプロジェクトとアプリケ ... サイトにアップロードする Post the package on a public repository, such as the Python Package Index (PyPI) . There is a good tutorial for doing this. 仮想環境でのPythonパッケージのインストール 先ほど、 django-polls をユーザライブラリとしてインストールしまし ... ... ストを書く 変更のためのコードを書く 変更をテストする プルリクエストを送る より多くの情報を得る方法 Once you're done with the tutorial, you can look through the rest of Django's documentation on contributing . It contains lots of great information and is a ... 2026年10月08日