per page, with , order by , clip by
Results of 1 - 10 of about 73 for about (0.004 sec.)
フラットページ (flatpages) アプリ 13652
フラットページ (flatpages) アプリ Django にはオプションで "flatpages" アプリケーションが付属しています。これを使えば、"フラットな" HTML コンテンツをデータベースに保存することができ、 Django のadmin インタフェースや Python API を使って管理で ... きます。 フラットページは、URL、タイトル、コンテンツを持つオブジェクトです。これは、 "About" や "Privacy Policy" などのワンオフの特別なページに使用します。データベースに保存する必要はあるが、カスタムのDjangoアプリを ... し、それらの URL を URLconf にハードコードすることです。 from django.contrib.flatpages import views urlpatterns += [ path ( "about-us/" , views . flatpage , kwargs = { "url" : "/about-us/" }, name = "about" ), path ( "license/" , views . flatpage , kwar ... トページを表示したい場合は、 for 節を使用して認証済みユーザーを指定する必要があります。 例: {% get_flatpages for someuser as about_pages %} 匿名ユーザーを提供すると、 get_flatpages はユーザーを提供していない場合と同じように動作します。つまり、公開されて ...
https://man.mtool.work/django/6.1/ref/contrib/flatpages.html
クラスベースビュー 10913
クラスベースビュー ビューとは、リクエストを受け取り、レスポンスを返す呼び出し可能オブジェクトです。ビューは単なる関数以上のものにもなり得ます。Django ではビューとして使用できるいくつかのクラスを提供しており、これらを利用することで、ビューを ... 出しに渡せばよいのです。 from django.urls import path from django.views.generic import TemplateView urlpatterns = [ path ( "about/" , TemplateView . as_view ( template_name = "about.html" )), ] as_view() に渡されたすべての引数は、クラスで設定された属性 ... ate_name などの属性や get_context_data などのメソッドをサブクラスで上書きする方法を紹介します。たとえば、1つのテンプレート about.html だけを表示するビューを作ることを考えてみてください。Django には、このために利用できるジェネリックビュー TemplateView ... 化し、テンプレート名を上書きすることで実装できます。 # some_app/views.py from django.views.generic import TemplateView class AboutView ( TemplateView ): template_name = "about.html" あとは、URLconf にこの新しいビューを追加する必要があります。 TemplateVi ...
https://man.mtool.work/django/6.1/topics/class-based-views/
Django 0.96 リリースノート 9851
Django 0.96 リリースノート Django 0.96 へようこそ! The primary goal for 0.96 is a cleanup and stabilization of the features introduced in 0.95. There have been a few small backwards-incompatible changes since 0.95, but the upgrade process s ... database itself contains constraints named in the old form; this will cause the database server to raise an error message about modifying nonexistent constraints. If you need to work around this, there are two methods available: Redirect the output o ... ases. We recommend that anyone new to form handling skip the old forms system and start with the new. For more information about django.newforms , read the newforms documentation . URLconf improvements You can now use any callable as the callback in U ... one: dedicated views for adding and updating users have been added to the admin interface, so you no longer need to worry about working with hashed passwords in the admin. ありがとう Since 0.95, a number of people have stepped forward and taken a maj ...
https://man.mtool.work/django/6.1/releases/0.96.html
さぁ始めましょう 9641
さぁ始めましょう Django や web 開発全般は初めてですか? それなら、ここに来て正解ですね。ここにあるドキュメントを読んで、行動に移してみましょう。 Django の概要 クイックインストールガイド はじめての Django アプリ作成、その 1 はじめての Django ... , we recommend referring to the official Python documentation , which provides comprehensive and authoritative information about the language, as well as links to other resources such as a list of books about Python . ...
https://man.mtool.work/django/6.1/intro/
Porting your apps from Django 0.96 to 1.0 9641
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... lds. It's no longer valid and has been moved to the ModelAdmin class in admin.py . See the admin , below, for more details about changes to the admin. Remove core Remove the core argument from your model fields. It is no longer necessary, since the eq ... ivalent functionality (part of inline editing ) is handled differently by the admin interface now. You don't have to worry about inline editing until you get to the admin section, below. For now, remove all references to core . Replace class Admin: wi ... lapse" }), ( "group2" , { "fields" : ( "spam" , "eggs" ), "classes" : "collapse wide" }), ) 参考 More detailed information about the changes and the reasons behind them can be found on the NewformsAdminBranch wiki page The new admin comes with a ton o ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django へのコントリビュート 9432
Django へのコントリビュート Django はボランティアで成り立っているコミュニティです。Django が成長し続けるにつれて、私たちは常に他の人を助けるためにより多くの人を必要としています。フレームワーク自体でも、もっと広いエコシステムでも、様々な方法 ... で貢献できます。 Communication channels We're passionate about helping Django users make the jump to contributing members of the community. Communication is key - working on Django is b ... eing part of a conversation. Join it, to become familiar with what we're doing and how we talk about it. You'll be able to form relationships with more experienced contributors who are there to help guide you towards succes ... he Django Discord server to discuss and answer questions. By explaining Django to other users, you're going to learn a lot about the framework yourself. Django に関するブログを書いてください。私たちは知り得た Django のブログを全て community page 上にま ...
https://man.mtool.work/django/6.1/internals/contributing/
翻訳 9013
翻訳 概要 Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文字列 と呼ばれます。翻訳文字列は Django に「このテキストに対する翻訳が有効な場合、このテキストは ... 役に立ちます。 URL パターンの例: from django.conf.urls.i18n import i18n_patterns from django.urls import include , path from about import views as about_views from news import views as news_views from sitemap.views import sitemap urlpatterns = [ path ( ... ), path ( "<slug:slug>/" , news_views . details , name = "detail" ), ], "news" , ) urlpatterns += i18n_patterns ( path ( "about/" , about_views . main , name = "about" ), path ( "news/" , include ( news_patterns , namespace = "news" )), ) これらの UR ... 8n import i18n_patterns from django.urls import include , path from django.utils.translation import gettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ path ( ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
アクセシビリティ 8370
アクセシビリティ The Django project is committed to ensuring that websites built with Django are usable by everyone, including people with disabilities. Django's built-in components, such as the admin interface and default form rendering, s ... ssibility Guidelines (ATAG) 2.0 – guidelines for software and services that are used to produce web content. To learn more about accessibility without diving straight into standards, we recommend The A11Y Project , a community-driven effort to make di ... cessibility targets. We actively work on fixing issues, both as part of ongoing maintenance and bigger overhauls. To learn about known issues, and get involved, see: #accessibility on the Django Discord server . The Accessibility Django forum topic . ...
https://man.mtool.work/django/6.1/internals/contributing/accessibility.html
チケットをトリアージする 8160
チケットをトリアージする Django uses Trac for managing the work on the code base. Trac is a community-tended garden of the bugs people have found and the features Django has decided to add. As in any garden, sometimes there are weeds to be ... ing its lifetime. Unreviewed (未レビュー) The ticket has not been reviewed by anyone who felt qualified to make a judgment about whether the ticket contained a valid issue or ought to be closed for any reasons. Unreviewed tickets appear in the "triage ... d that the reporter of the ticket may not be happy to have their ticket closed (unless it's fixed!). If you're not certain about closing a ticket, leave a comment with your thoughts instead. If you do close a ticket, you should always make sure of the ... oss-reference the closed ticket by leaving a comment in the original one -- this allows to access more related information about the reported bug or requested feature. 礼儀正しくする。 チケットが閉じられて嬉しい人はいません。苛々させたり、落胆させてし ...
https://man.mtool.work/django/6.1/internals/contributing/triaging-tickets.html
サイトマップ・フレームワーク 7951
サイトマップ・フレームワーク Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 サイトマップとは、検索エンジンのインデクサーに、ページの変更頻度や、あるページがサイト内の他のペー ... class StaticViewSitemap ( sitemaps . Sitemap ): priority = 0.5 changefreq = "daily" def items ( self ): return [ "main" , "about" , "license" ] def location ( self , item ): return reverse ( item ) # urls.py from django.contrib.sitemaps.views import s ... rt views sitemaps = { "static" : StaticViewSitemap , } urlpatterns = [ path ( "" , views . main , name = "main" ), path ( "about/" , views . about , name = "about" ), path ( "license/" , views . license , name = "license" ), # ... path ( "sitemap.xml" ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
PREV 1 2 3 4 5 6 7 8 NEXT