検索

phrase: max: clip:
target: order:
Results of 61 - 70 of about 231 for import (0.069 sec.)
LayerMapping data import utility — Django 4.0.6 ドキュメント 5572
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Modules « previous | up | next » LayerMapping data import utility ¶ The LayerMapping class provides a way to ... three features): >>> from django.contrib.gis.gdal import DataSource >>> ds = DataSource ( 'test_poly.shp' ) ... sure to use migrate ): from django.contrib.gis.db import models class TestGeo ( models . Model ): name = mo ... in the database: >>> from django.contrib.gis.utils import LayerMapping >>> from geoapp.models import TestGeo ...
https://man.plustar.jp/django/ref/contrib/gis/layermapping.html - [similar]
PostgreSQL specific model fields — Django 4.0.6 ドキュメント 5572
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... . For example: from django.contrib.postgres.fields import ArrayField from django.db import models class Ches ... e rectangular: from django.contrib.postgres.fields import ArrayField from django.db import models class Boar ... example model: from django.contrib.postgres.fields import ArrayField from django.db import models class Post ... example model: from django.contrib.postgres.fields import HStoreField from django.db import models class Dog ...
https://man.plustar.jp/django/ref/contrib/postgres/fields.html - [similar]
The staticfiles app — Django 4.0.6 ドキュメント 5572
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... vely. For example: from django.contrib.staticfiles import storage class MyStaticFilesStorage ( storage . Sta ... APPS setting: from django.contrib.staticfiles.apps import StaticFilesConfig class MyStaticFilesConfig ( Stat ... es.storage.HashedFilesMixin.patterns ) cover: The @import rule and url() statement of Cascading Style Sheets ... le, the 'css/styles.css' file with this content: @ import url ( "../admin/css/base.css" ) ; ...would be repl ...
https://man.plustar.jp/django/ref/contrib/staticfiles.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 5572
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... type application/xhtml+xml : from django.shortcuts import render def my_view ( request ): # View code here.. ... ) This example is equivalent to: from django.http import HttpResponse from django.template import loader de ... figure out the redirect URL: from django.shortcuts import redirect def my_view ( request ): ... obj = MyMode ... mary key of 1 from MyModel : from django.shortcuts import get_object_or_404 def my_view ( request ): obj = g ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
The flatpages app — Django 4.0.6 ドキュメント 5541
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... it up as a "catchall" pattern. In this case, it is important to place the pattern at the end of the other ur ... lpatterns: from django.contrib.flatpages import views # Your other patterns here urlpatterns += [ ... he url template tag: from django.contrib.flatpages import views urlpatterns += [ path ( 'about-us/' , views ... stom ModelAdmin for FlatPage : from django.contrib import admin from django.contrib.flatpages.admin import F ...
https://man.plustar.jp/django/ref/contrib/flatpages.html - [similar]
Django 1.8 リリースノート — Django 4.0.6 ドキュメント 5541
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... of strings representing module paths. This allows importing several format modules from different reusable ... s added to the request_started signal. You can now import the setting_changed() signal from django.core.sign ... logged in, you can run this query: from django.db import models from django.contrib.auth import get_user_mo ... del from django.contrib.auth.models import AbstractBaseUser UserModel = get_user_model () if ...
https://man.plustar.jp/django/releases/1.8.html - [similar]
django.core.files.uploadedfile — Django 4.0.6 ドキュメント 5469
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... コード """ Classes representing uploaded files. """ import os from io import BytesIO from django.conf import ... settings from django.core.files import temp as tempfile from django.core.files.base impor ... t File from django.core.files.utils import validate_file_name __all__ = ( "UploadedFile" , "T ...
https://man.plustar.jp/django/_modules/django/core/files/uploadedfile.html - [similar]
Django's cache framework — Django 4.0.6 ドキュメント 5469
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... n the filesystem or directly in memory. This is an important decision that affects your cache's performance; ... external cache backend with Django, use the Python import path as the BACKEND of the CACHES setting, like so ... sponse for you: from django.views.decorators.cache import cache_page @cache_page ( 60 * 15 ) def my_view ( r ... in cache_page : from django.views.decorators.cache import cache_page urlpatterns = [ path ( 'foo/<int:code>/ ...
https://man.plustar.jp/django/topics/cache.html - [similar]
はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 5428
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ethod="post" (as opposed to method="get" ) is very important, because the act of submitting this form will a ... 追加してください: polls/views.py ¶ from django.http import HttpResponse , HttpResponseRedirect from django.sh ... ortcuts import get_object_or_404 , render from django.urls import ... reverse from .models import Choice , Question # ... def vote ( request , quest ...
https://man.plustar.jp/django/intro/tutorial04.html - [similar]
メッセージフレームワーク — Django 4.0.6 ドキュメント 5428
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... のニーズに合わないときは、 MESSAGE_STORAGE を完全な import パスに設定することで他のストレージクラスを選べます ... を提供することだけです: from django.contrib.messages import constants as messages MESSAGE_TAGS = { messages . ... には、以下を呼び出してください: from django.contrib import messages messages . add_message ( request , messag ... sage . level == DEFAULT_MESSAGE_LEVELS . ERROR % } Important : { % endif % } {{ message }} </ li > { % endfo ...
https://man.plustar.jp/django/ref/contrib/messages.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 NEXT