Results of 31 - 40 of about 231 for import (0.067 sec.)
- GEOS API — Django 4.0.6 ドキュメント 6261
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
WKB, and GeoJSON: >>> from django.contrib.gis.geos import GEOSGeometry >>> pnt = GEOSGeometry ( 'POINT(5 23) ...
its constructor: >>> from django.contrib.gis.geos import Point >>> pnt = Point ( 5 , 23 ) All these constru ...
id . For example: >>> from django.contrib.gis.geos import GEOSGeometry , LineString , Point >>> print ( GEOS ...
ject from a file: >>> from django.contrib.gis.geos import fromfile >>> pnt = fromfile ( '/path/to/pnt.wkt' ) ...
-
https://man.plustar.jp/django/ref/contrib/gis/geos.html
- [similar]
- How to create database migrations — Django 4.0.6 ドキュメント 6220
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
_editor.connection.alias attribute: from django.db import migrations def forwards ( apps , schema_editor ): ...
your migrations, do the following: from django.db import migrations def forwards ( apps , schema_editor ): ...
rent as possible to the router. This is especially important for reusable and third-party apps. Migrations t ...
migration, change AddField to AlterField , and add imports of uuid and models . For example: 0006_remove_uui ...
-
https://man.plustar.jp/django/howto/writing-migrations.html
- [similar]
- ビューを記述する — Django 4.0.6 ドキュメント 6189
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
、現在の日付と時刻を返すビューです: from django.http import HttpResponse import datetime def current_datetime ...
to signify an error. For example: from django.http import HttpResponse , HttpResponseNotFound def my_view ( ...
スを作成することもできます。例えば: from django.http import HttpResponse def my_view ( request ): # ... # Retu ...
ケーションに返します。 使い方の例: from django.http import Http404 from django.shortcuts import render from p ...
-
https://man.plustar.jp/django/topics/http/views.html
- [similar]
- テストツール — Django 4.0.6 ドキュメント 6189
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
lient and retrieve web pages: >>> from django.test import Client >>> c = Client () >>> response = c . post ( ...
_csrf_checks 引数を渡します。 >>> from django.test import Client >>> csrf_client = Client ( enforce_csrf_che ...
file_extension validator. For example: >>> from io import BytesIO >>> img = BytesIO ( b 'mybinarydata' ) >>> ...
in and the details of how a user logged in aren't important. Unlike login() , this method skips the authent ...
-
https://man.plustar.jp/django/topics/testing/tools.html
- [similar]
- Generic display ビュー — Django 4.0.6 ドキュメント 6148
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ponse() Example myapp/views.py : from django.utils import timezone from django.views.generic.detail import D ...
etailView from articles.models import Article class ArticleDetailView ( DetailView ): mo ...
return context 例 myapp/urls.py : from django.urls import path from article.views import ArticleDetailView u ...
to_response() Example views.py : from django.utils import timezone from django.views.generic.list import Lis ...
-
https://man.plustar.jp/django/ref/class-based-views/generic-display.html
- [similar]
- Signals — Django 4.0.6 ドキュメント 6148
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
the manual connect route: from django.core.signals import request_finished request_finished . connect ( my_c ...
nnect with the decorator: from django.core.signals import request_finished from django.dispatch import recei ...
and its models module to minimize side-effects of importing code. In practice, signal handlers are usually ...
class . If you're using the receiver() decorator, import the signals submodule inside ready() , this will i ...
-
https://man.plustar.jp/django/topics/signals.html
- [similar]
- asgiref.sync — Django 4.0.6 ドキュメント 6076
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
s | Index | Modules up asgiref.sync のソースコード import asyncio.coroutines import contextvars import funct ...
ools import inspect import os import sys import threading impo ...
rt warnings import weakref from concurrent.futures import Future , Th ...
readPoolExecutor from typing import Any , Callable , Dict , Optional , overload from . ...
-
https://man.plustar.jp/django/_modules/asgiref/sync.html
- [similar]
- django.utils.log — Django 4.0.6 ドキュメント 6076
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
Index | Modules up django.utils.log のソースコード import logging import logging.config # needed when loggin ...
config doesn't start with logging.config from copy import copy from django.conf import settings from django. ...
core import mail from django.core.mail import get_connection f ...
rom django.core.management.color import color_style from django.utils.module_loading impor ...
-
https://man.plustar.jp/django/_modules/django/utils/log.html
- [similar]
- django — Django 4.0.6 ドキュメント 6045
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
up django のソースコード from django.utils.version import get_version VERSION = ( 4 , 0 , 6 , "alpha" , 0 ) ...
efix if `set_prefix` is True. """ from django.apps import apps from django.conf import settings from django. ...
urls import set_script_prefix from django.utils.log import con ...
-
https://man.plustar.jp/django/_modules/django.html
- [similar]
- Django 1.2 リリースノート — Django 4.0.6 ドキュメント 6045
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e release notes cover the new features, as well as important changes you'll want to be aware of when upgradi ...
ーバービュー ¶ Django 1.2 introduces several large, important new features, including: Support for multiple d ...
o the new CSRF protection framework requires a few important backwards-incompatible changes, detailed in CSR ...
バージョン間の互換性 ¶ While not a new feature, it's important to note that Django 1.2 introduces the first sh ...
-
https://man.plustar.jp/django/releases/1.2.html
- [similar]