検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 47 for myapp (0.057 sec.)
Generic date ビュー — Django 4.0.6 ドキュメント 14501
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ためのビューです。 注釈 このページの例のいくつかは、 myapp/models.py 内で下記の通り Article モデルが定義されて ... れは、すべてのサブクラスのビューに適用されます。 例 myapp/urls.py : from django.urls import path from django ... .views.generic.dates import ArchiveIndexView from myapp.models import Article urlpatterns = [ path ( 'arch ... d = "pub_date" ), name = "article_archive" ), ] 例 myapp/article_archive.html : < ul > {% for article in la ...
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html - [similar]
Generic editing ビュー — Django 4.0.6 ドキュメント 12099
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... のページの例のいくつかは、 Author モデルが下記の通り myapp/models.py 内で定義されているものと見なしています。 ... .ProcessFormView django.views.generic.base.View 例 myapp/forms.py : from django import forms class ContactF ... sing the self.cleaned_data dictionary pass Example myapp/views.py : from myapp.forms import ContactForm fro ... _email () return super () . form_valid ( form ) 例 myapp/forms.py : < form method = "post" > {% csrf_token ...
https://man.plustar.jp/django/ref/class-based-views/generic-editing.html - [similar]
Djangoの設定 — Django 4.0.6 ドキュメント 10108
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... . In this example, default settings are taken from myapp_defaults , and the DEBUG setting is set to True , ... regardless of its value in myapp_defaults : from django.conf import settings from m ... yapp import myapp_defaults settings . configure ( default_settings = ... myapp_defaults , DEBUG = True ) The following example, w ...
https://man.plustar.jp/django/topics/settings.html - [similar]
素の SQL 文の実行 — Django 4.0.6 ドキュメント 9561
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... > for p in Person . objects . raw ( 'SELECT * FROM myapp_person' ): ... print ( p ) John Smith Jane Jones T ... させる事で取得しています。先の例ではモデル Person が myapp と名づけられたアプリケーション内に作成されていると ... 仮定すると、そのテーブル名が myapp_person であると推定できます。 詳細に関しては、手動 ... 'SELECT id, first_name, last_name, birth_date FROM myapp_person' ) ... >>> Person . objects . raw ( 'SELECT ...
https://man.plustar.jp/django/topics/db/sql.html - [similar]
How to create database migrations — Django 4.0.6 ドキュメント 9287
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... _migrate() method of database routers as **hints : myapp/dbrouters.py ¶ class MyRouter : def allow_migrate ... n files for the same app by running makemigrations myapp --empty twice. We've renamed the migration files t ... on ( migrations . Migration ): dependencies = [ ( 'myapp' , '0005_populate_uuid_values' ), ] operations = [ ... on ( migrations . Migration ): dependencies = [ ( 'myapp' , '0003_auto_20150129_1705' ), ] operations = [ m ...
https://man.plustar.jp/django/howto/writing-migrations.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 9135
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... from django.forms import formset_factory >>> from myapp.forms import ArticleForm >>> ArticleFormSet = form ... from django.forms import formset_factory >>> from myapp.forms import ArticleForm >>> ArticleFormSet = form ... ngo.forms.formsets import formset_factory >>> from myapp.forms import ArticleForm >>> ArticleFormSet = form ... from django.forms import formset_factory >>> from myapp.forms import ArticleForm >>> ArticleFormSet = form ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
Generic display ビュー — Django 4.0.6 ドキュメント 8862
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... _context_data() get() render_to_response() Example myapp/views.py : from django.utils import timezone from ... xt [ 'now' ] = timezone . now () return context 例 myapp/urls.py : from django.urls import path from articl ... . as_view (), name = 'article-detail' ), ] Example myapp/article_detail.html : < h1 > {{ object.headline }} ... xt [ 'now' ] = timezone . now () return context 例 myapp/urls.py : from django.urls import path from articl ...
https://man.plustar.jp/django/ref/class-based-views/generic-display.html - [similar]
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 8862
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 用することで構築することができます。 views.py ¶ from myapp.forms import ContactForm from django.views.generic ... t import CreateView , DeleteView , UpdateView from myapp.models import Author class AuthorCreateView ( Crea ... Lconf: urls.py ¶ from django.urls import path from myapp.views import AuthorCreateView , AuthorDeleteView , ... el. In this example: CreateView and UpdateView use myapp/author_form.html DeleteView uses myapp/author_conf ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
The Django admin documentation generator — Django 4.0.6 ドキュメント 8801
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... view. 例: from django.shortcuts import render from myapp.models import MyModel def my_view ( request , slug ... ): """ Display an individual :model:`myapp.MyModel`. **Context** ``mymodel`` An instance of : ... model:`myapp.MyModel`. **Template:** :template:`myapp/my_templa ... . get ( slug = slug )} return render ( request , 'myapp/my_template.html' , context ) Template tags and fi ...
https://man.plustar.jp/django/ref/contrib/admin/admindocs.html - [similar]
How to provide initial data for models — Django 4.0.6 ドキュメント 8178
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... rson model might look like in JSON: [ { "model" : "myapp.person" , "pk" : 1 , "fields" : { "first_name" : " ... John" , "last_name" : "Lennon" } }, { "model" : "myapp.person" , "pk" : 2 , "fields" : { "first_name" : " ... のフィクスチャだと以下のようになります: - model : myapp.person pk : 1 fields : first_name : John last_name ... : Lennon - model : myapp.person pk : 2 fields : first_name : Paul last_name ...
https://man.plustar.jp/django/howto/initial-data.html - [similar]
PREV 1 2 3 4 5 NEXT