検索

phrase: max: clip:
target: order:
Results of 41 - 50 of about 231 for import (0.085 sec.)
Djangoの認証システムを使用する — Django 4.0.6 ドキュメント 6004
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 用することです。 >>> from django.contrib.auth.models import User >>> user = User . objects . create_user ( 'jo ... こともできます: >>> from django.contrib.auth.models import User >>> u = User . objects . get ( username = 'jo ... されます。以下は実装例です: from django.contrib.auth import authenticate user = authenticate ( username = 'joh ... 下記のように作成する事ができます: from myapp.models import BlogPost from django.contrib.auth.models import Pe ...
https://man.plustar.jp/django/topics/auth/default.html - [similar]
Full text search — Django 4.0.6 ドキュメント 5973
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... chVector : >>> from django.contrib.postgres.search import SearchVector >>> Entry . objects . annotate ( ... ... Examples: >>> from django.contrib.postgres.search import SearchQuery >>> SearchQuery ( 'red tomato' ) # two ... exibility: >>> from django.contrib.postgres.search import SearchQuery >>> SearchQuery ( 'meat' ) & SearchQue ... se together the terms are in the document, and how important the part of the document is where they occur. T ...
https://man.plustar.jp/django/ref/contrib/postgres/search.html - [similar]
Django 0.96 リリースノート — Django 4.0.6 ドキュメント 5973
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... to fix your code after the fact. Just change your import statements like this: from django import forms # 0 ... .95-style from django import oldforms as forms # 0.96-style The next official r ... jango.forms at that time will need to change their import statements as described above. The next release af ... mple, this URLconf: from django.conf.urls.defaults import * urlpatterns = patterns ( '' , ( '^myview/$' , 'm ...
https://man.plustar.jp/django/releases/0.96.html - [similar]
django.utils.translation — Django 4.0.6 ドキュメント 5932
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Internationalization support. """ from contextlib import ContextDecorator from decimal import ROUND_UP , De ... cimal from django.utils.autoreload import autoreload_started , file_changed from django.util ... s.functional import lazy from django.utils.regex_helper import _lazy_r ... _I18N, as late as possible, so that modules can be imported # without having to first configure Django, and ...
https://man.plustar.jp/django/_modules/django/utils/translation.html - [similar]
Generic editing ビュー — Django 4.0.6 ドキュメント 5901
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 定義されているものと見なしています。 from django.db import models from django.urls import reverse class Autho ... .generic.base.View 例 myapp/forms.py : from django import forms class ContactForm ( forms . Form ): name = f ... ary pass Example myapp/views.py : from myapp.forms import ContactForm from django.views.generic.edit import ... le myapp/views.py : from django.views.generic.edit import CreateView from myapp.models import Author class A ...
https://man.plustar.jp/django/ref/class-based-views/generic-editing.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 5860
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... application with an Article model: from django.db import models STATUS_CHOICES = [ ( 'd' , 'Draft' ), ( 'p' ... n the make_published function: from django.contrib import admin ... @admin . action ( description = 'Mark se ... registration would look like: from django.contrib import admin from myapp.models import Article @admin . ac ... hat the action was successful: from django.contrib import messages from django.utils.translation import nget ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
django.urls functions for use in URLconfs — Django 4.0.6 ドキュメント 5860
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ion in urlpatterns . For example: from django.urls import include , path urlpatterns = [ path ( 'index/' , v ... ion in urlpatterns . For example: from django.urls import include , re_path urlpatterns = [ re_path ( r '^in ... mespace=None ) A function that takes a full Python import path to another URLconf module that should be "inc ... for serving files in debug mode: from django.conf import settings from django.conf.urls.static import stati ...
https://man.plustar.jp/django/ref/urls.html - [similar]
クラスベースビュー — Django 4.0.6 ドキュメント 5860
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ド呼び出し自体に渡すことができます: from django.urls import path from django.views.generic import TemplateView ... ます: # some_app/views.py from django.views.generic import TemplateView class AboutView ( TemplateView ): tem ... ッドを URL に指定します。 # urls.py from django.urls import path from some_app.views import AboutView urlpatte ... RL を次のようにマッピングします。 from django.urls import path from books.views import BookListView urlpatte ...
https://man.plustar.jp/django/topics/class-based-views/index.html - [similar]
はじめての Django アプリ作成、その 3 — Django 4.0.6 ドキュメント 5829
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ルと結びつけます。 polls/urls.py ¶ from django.urls import path from . import views urlpatterns = [ # ex: /po ... 示するビューです: polls/views.py ¶ from django.http import HttpResponse from .models import Question def inde ... 新してみましょう: polls/views.py ¶ from django.http import HttpResponse from django.template import loader fr ... om .models import Question def index ( request ): latest_question_li ...
https://man.plustar.jp/django/intro/tutorial03.html - [similar]
Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 5829
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... st_name ) New (1.0) admin.py : from django.contrib import admin from models import Author class AuthorAdmin ... ld (0.96) urls.py : from django.conf.urls.defaults import * urlpatterns = patterns ( '' , ( r '^admin/' , in ... New (1.0) urls.py : from django.conf.urls.defaults import * # The next two lines enable the admin and load e ... ach admin.py file: from django.contrib import admin admin . autodiscover () urlpatterns = patter ...
https://man.plustar.jp/django/releases/1.0-porting-guide.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 NEXT