django の API リファレンス
django (django/django) の公開 API 400 件 —— クラス 276、関数 25、メソッド 99。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: django/django
| 種別 | 件数 |
|---|---|
| クラス | 276 |
| 関数 | 25 |
| メソッド | 99 |
API 一覧
class
django.apps.config.AppConfigClass representing a Django application and its configuration.
method
django.apps.config.AppConfig.get_models(include_auto_created=False, include_swapped=False)Return an iterable of models.
class
django.apps.registry.AppsA registry that stores the configuration of installed applications.
method
django.apps.registry.Apps.get_swappable_settings_name(to_string)For a given model string (e.g.
class
django.conf.SettingsReferenceString subclass which references a current settings value.
class
django.conf.UserSettingsHolderHolder for user configured settings.
class
django.contrib.admin.apps.AdminConfigThe default AppConfig for admin which does autodiscovery.
class
django.contrib.admin.apps.SimpleAdminConfigSimple AppConfig which does not do automatic discovery.
class
django.contrib.admin.exceptions.AlreadyRegisteredThe model is already registered.
class
django.contrib.admin.exceptions.NotRegisteredThe model is not registered.
class
django.contrib.admin.forms.AdminAuthenticationFormA custom authentication form used in the admin app.
class
django.contrib.admin.helpers.AdminErrorListStore errors for the form/formsets in an add/change view.
class
django.contrib.admin.options.BaseModelAdminFunctionality common to both ModelAdmin and InlineAdmin.
method
django.contrib.admin.options.BaseModelAdmin.get_exclude(request, obj=None)Hook for specifying exclude.
method
django.contrib.admin.options.BaseModelAdmin.get_fields(request, obj=None)Hook for specifying fields.
method
django.contrib.admin.options.BaseModelAdmin.get_fieldsets(request, obj=None)Hook for specifying fieldsets.
class
django.contrib.admin.options.InlineModelAdminOptions for inline editing of ``model`` instances.
class
django.contrib.admin.utils.FieldIsAForeignKeyColumnNameA field is a foreign key attname, i.e.
func
django.contrib.admin.utils.reverse_field_path(model, path)Create a reversed field path.
func
django.contrib.admin.utils.unquote(s)Undo the effects of quote().
class
django.contrib.admin.views.autocomplete.AutocompleteJsonViewHandle AutocompleteWidget's AJAX requests for data.
class
django.contrib.admin.widgets.FilteredSelectMultipleA SelectMultiple with a JavaScript filter interface.
class
django.contrib.admindocs.middleware.XViewMiddlewareAdd an X-View header to internal HEAD requests.
func
django.contrib.admindocs.utils.parse_docstring(docstring)Parse out the parts of a docstring.
class
django.contrib.admindocs.views.BaseAdminDocsViewBase view for admindocs views.
func
django.contrib.auth.aauthenticate(request=None, **credentials)See authenticate().
func
django.contrib.auth.aget_user(request)See get_user().
func
django.contrib.auth.alogin(request, user, backend=None)See login().
func
django.contrib.auth.alogout(request)See logout().
func
django.contrib.auth.aupdate_session_auth_hash(request, user)See update_session_auth_hash().
class
django.contrib.auth.backends.ModelBackendAuthenticates against settings.AUTH_USER_MODEL.
method
django.contrib.auth.backends.ModelBackend.aget_user_permissions(user_obj, obj=None)See get_user_permissions().
method
django.contrib.auth.backends.ModelBackend.ahas_module_perms(user_obj, app_label)See has_module_perms()
class
django.contrib.auth.forms.AuthenticationFormBase class for authenticating users.
class
django.contrib.auth.forms.SetPasswordMixinForm mixin that validates and sets a password for a user.
class
django.contrib.auth.hashers.Argon2PasswordHasherSecure password hashing using the argon2 algorithm.
class
django.contrib.auth.hashers.ScryptPasswordHasherSecure password hashing using the Scrypt algorithm.
func
django.contrib.auth.hashers.acheck_password(password, encoded, setter=None, preferred='default')See check_password().
func
django.contrib.auth.hashers.verify_password(password, encoded, preferred='default')Return two booleans.
class
django.contrib.auth.mixins.LoginRequiredMixinVerify that the current user is authenticated.
class
django.contrib.auth.models.GroupManagerThe manager for the auth's Group model.
class
django.contrib.auth.password_validation.MinimumLengthValidatorValidate that the password is of a minimum length.
class
django.contrib.auth.password_validation.NumericPasswordValidatorValidate that the password is not entirely numeric.
class
django.contrib.auth.views.LoginViewDisplay the login form and handle the login action.
method
django.contrib.auth.views.LoginView.form_valid(form)Security check complete.
method
django.contrib.auth.views.LoginView.get_default_redirect_url()Return the default redirect URL.
method
django.contrib.auth.views.LogoutView.get_default_redirect_url()Return the default redirect URL.
method
django.contrib.auth.views.LogoutView.post(request, *args, **kwargs)Logout may be done via POST.
class
django.contrib.contenttypes.forms.BaseGenericInlineFormSetA formset for generic inline objects to a parent.
class
django.contrib.gis.db.backends.oracle.models.OracleGeometryColumnsMaps to the Oracle USER_SDO_GEOM_METADATA table.
class
django.contrib.gis.db.backends.oracle.models.OracleSpatialRefSysMaps to the Oracle MDSYS.CS_SRS table.
class
django.contrib.gis.db.backends.postgis.models.PostGISGeometryColumnsThe 'geometry_columns' view from PostGIS.
class
django.contrib.gis.db.backends.postgis.models.PostGISSpatialRefSysThe 'spatial_ref_sys' table from PostGIS.
class
django.contrib.gis.db.backends.spatialite.adapter.SpatiaLiteAdapterSQLite adapter for geometry objects.
class
django.contrib.gis.db.backends.spatialite.models.SpatialiteGeometryColumnsThe 'geometry_columns' table from SpatiaLite.
class
django.contrib.gis.db.backends.spatialite.models.SpatialiteSpatialRefSysThe 'spatial_ref_sys' table from SpatiaLite.
class
django.contrib.gis.db.models.fields.BaseSpatialFieldThe Base GIS Field.
class
django.contrib.gis.db.models.fields.ExtentFieldUsed as a return value from an extent aggregate
class
django.contrib.gis.db.models.lookups.SameAsLookupThe "~=" operator is the "same as" operator.
class
django.contrib.gis.db.models.sql.conversion.AreaFieldWrapper for Area values.
class
django.contrib.gis.db.models.sql.conversion.DistanceFieldWrapper for Distance values.
class
django.contrib.gis.forms.fields.GeometryFieldThis is the basic form field for a Geometry.
class
django.contrib.gis.forms.widgets.BaseGeometryWidgetThe base class for rich geometry widgets.
class
django.contrib.gis.forms.widgets.OSMWidgetAn OpenLayers/OpenStreetMap-based widget.
class
django.contrib.gis.gdal.datasource.DataSourceWraps an OGR Data Source object.
method
django.contrib.gis.gdal.datasource.DataSource.name()Return the name of the data source.
class
django.contrib.gis.gdal.driver.DriverWrap a GDAL/OGR Data Source Driver.
method
django.contrib.gis.gdal.envelope.Envelope.ll()Return the lower-left coordinate.
method
django.contrib.gis.gdal.envelope.Envelope.tuple()Return a tuple representing the envelope.
method
django.contrib.gis.gdal.envelope.Envelope.ur()Return the upper-right coordinate.
class
django.contrib.gis.gdal.envelope.OGREnvelopeRepresent the OGREnvelope C Structure.
method
django.contrib.gis.gdal.feature.Feature.fid()Return the feature identifier.
class
django.contrib.gis.gdal.field.FieldWrap an OGR Field.
method
django.contrib.gis.gdal.field.Field.as_string()Retrieve the Field's value as a string.
method
django.contrib.gis.gdal.field.Field.name()Return the name of this Field.
method
django.contrib.gis.gdal.field.Field.precision()Return the precision of this Field.
method
django.contrib.gis.gdal.field.Field.type()Return the OGR type of this Field.
method
django.contrib.gis.gdal.field.Field.value()Return the value of this Field.
method
django.contrib.gis.gdal.field.Field.width()Return the width of this Field.
class
django.contrib.gis.gdal.geometries.GeometryCollectionThe Geometry Collection class.
method
django.contrib.gis.gdal.geometries.LineString.m()Return the M coordinates in a list.
method
django.contrib.gis.gdal.geometries.LineString.x()Return the X coordinates in a list.
method
django.contrib.gis.gdal.geometries.LineString.y()Return the Y coordinates in a list.
method
django.contrib.gis.gdal.geometries.LineString.z()Return the Z coordinates in a list.
class
django.contrib.gis.gdal.geometries.OGRGeometryEncapsulate an OGR geometry.
method
django.contrib.gis.gdal.geometries.OGRGeometry.clone()Clone this OGR Geometry.
method
django.contrib.gis.gdal.geometries.OGRGeometry.geom_name()Return the Name of this Geometry.
method
django.contrib.gis.gdal.geometries.OGRGeometry.num_coords()Alias for `point_count`.
method
django.contrib.gis.gdal.geometries.OGRGeometry.wkb_size()Return the size of the WKB buffer.
method
django.contrib.gis.gdal.geometries.Point.tuple()Return the tuple of this point.
method
django.contrib.gis.gdal.geometries.Polygon.shell()Return the shell of this Polygon.
class
django.contrib.gis.gdal.geomtype.OGRGeomTypeEncapsulate OGR Geometry Types.
func
django.contrib.gis.gdal.prototypes.geom.env_func(f, argtypes)For getting OGREnvelopes.
func
django.contrib.gis.gdal.prototypes.geom.pnt_func(f)For accessing point information.
class
django.contrib.gis.gdal.raster.base.GDALRasterBaseAttributes that exist on both GDALRaster and GDALBand.
class
django.contrib.gis.gdal.raster.source.GDALRasterWrap a raster GDAL Data Source object.
method
django.contrib.gis.gdal.raster.source.GDALRaster.height()Height (Y axis) in pixels.
method
django.contrib.gis.gdal.raster.source.GDALRaster.name()Return the name of this raster.
method
django.contrib.gis.gdal.raster.source.GDALRaster.origin()Coordinates of the raster origin.
method
django.contrib.gis.gdal.raster.source.GDALRaster.width()Width (X axis) in pixels.
class
django.contrib.gis.gdal.srs.CoordTransformThe coordinate system transformation object.
class
django.contrib.gis.gdal.srs.SpatialReferenceA wrapper for the OGRSpatialReference object.
method
django.contrib.gis.gdal.srs.SpatialReference.proj4()Alias for proj().
class
django.contrib.gis.geos.error.GEOSExceptionThe base GEOS exception, indicates a GEOS-related error.
class
django.contrib.gis.geos.geometry.GEOSGeometryA class that, generally, encapsulates a GEOS geometry.
class
django.contrib.gis.geos.geometry.LinearGeometryMixinUsed for LineString and MultiLineString.
class
django.contrib.gis.geos.libgeos.GEOSFuncFactoryLazy loading of GEOS functions.
class
django.contrib.gis.geos.mutable_list.ListMixinA base class which provides complete list interface.
method
django.contrib.gis.geos.mutable_list.ListMixin.append(val)Standard list append method
method
django.contrib.gis.geos.mutable_list.ListMixin.count(val)Standard list count method
method
django.contrib.gis.geos.mutable_list.ListMixin.extend(vals)Standard list extend method
method
django.contrib.gis.geos.mutable_list.ListMixin.index(val)Standard list index method
method
django.contrib.gis.geos.mutable_list.ListMixin.insert(index, val)Standard list insert method
method
django.contrib.gis.geos.mutable_list.ListMixin.pop(index=-1)Standard list pop method
method
django.contrib.gis.geos.mutable_list.ListMixin.remove(val)Standard list remove method
method
django.contrib.gis.geos.mutable_list.ListMixin.reverse()Standard list reverse method
method
django.contrib.gis.geos.mutable_list.ListMixin.sort(key=None, reverse=False)Standard list sort method
method
django.contrib.gis.geos.point.Point.tuple()Return a tuple of the point.
method
django.contrib.gis.geos.point.Point.x()Return the X component of the Point.
method
django.contrib.gis.geos.point.Point.y()Return the Y component of the Point.
method
django.contrib.gis.geos.point.Point.z()Return the Z component of the Point.
class
django.contrib.gis.geos.prototypes.coordseq.CsIntFor coordinate sequence routines that return an integer.
class
django.contrib.gis.geos.prototypes.coordseq.CsOperationFor coordinate sequence operations.
class
django.contrib.gis.geos.prototypes.geom.GeomOutputFor GEOS routines that return a geometry.
class
django.contrib.gis.geos.prototypes.geom.IntFromGeomArgument is a geometry, return type is an integer.
class
django.contrib.gis.geos.prototypes.geom.StringFromGeomArgument is a Geometry, return type is a string.
class
django.contrib.gis.geos.prototypes.io.IOBaseBase class for GEOS I/O objects.
class
django.contrib.gis.geos.prototypes.predicates.BinaryPredicateFor GEOS binary predicate functions.
class
django.contrib.gis.geos.prototypes.predicates.UnaryPredicateFor GEOS unary predicate functions.
class
django.contrib.gis.geos.prototypes.threadsafe.GEOSContextHandleRepresent a GEOS context handle.
class
django.contrib.gis.geos.prototypes.threadsafe.GEOSFuncServe as a wrapper for GEOS C Functions.
class
django.contrib.gis.geos.prototypes.topology.TopologyFor GEOS unary topology functions.
class
django.contrib.gis.serializers.geojson.SerializerConvert a queryset to GeoJSON, http://geojson.org/
class
django.contrib.gis.sitemaps.kml.KMLSitemapA minimal hook to produce KML sitemaps.
class
django.contrib.gis.utils.layermapping.LayerMappingA class that maps OGR Layers to GeoDjango Models.
func
django.contrib.gis.views.feed(request, url, feed_dict=None)Provided for backwards compatibility.
class
django.contrib.messages.middleware.MessageMiddlewareMiddleware that handles temporary messages.
class
django.contrib.messages.storage.base.BaseStorageThis is the base backend for temporary message storage.
method
django.contrib.messages.storage.base.BaseStorage.add(level, message, extra_tags='')Queue a message to be stored.
method
django.contrib.messages.storage.base.BaseStorage.update(response)Store all unread messages.
class
django.contrib.messages.storage.cookie.CookieStorageStore messages in a cookie.
class
django.contrib.messages.storage.fallback.FallbackStorageTry to store all messages in the first backend.
func
django.contrib.messages.utils.get_level_tags()Return the message level tags.
class
django.contrib.messages.views.SuccessMessageMixinAdd a success message on successful form submission.
class
django.contrib.postgres.fields.ranges.ContinuousRangeFieldContinuous range field.
class
django.contrib.postgres.fields.ranges.RangeBoundaryA class that represents range boundaries.
class
django.contrib.postgres.operations.CreateCollationCreate a collation.
class
django.contrib.postgres.operations.RemoveCollationRemove a collation.
class
django.contrib.postgres.operations.ValidateConstraintValidate a table NOT VALID constraint.
class
django.contrib.postgres.validators.KeysValidatorA validator designed for HStore to require/restrict keys.
class
django.contrib.sessions.backends.base.SessionBaseBase class for all Session classes.
method
django.contrib.sessions.backends.base.SessionBase.create()Create a new session instance.
method
django.contrib.sessions.backends.base.SessionBase.save(must_create=False)Save the session data.
class
django.contrib.sessions.backends.cache.SessionStoreA cache-based session store.
class
django.contrib.sessions.backends.cached_db.SessionStoreImplement cached, database backed sessions.
method
django.contrib.sessions.backends.cached_db.SessionStore.aflush()See flush().
class
django.contrib.sessions.backends.db.SessionStoreImplement database session store.
method
django.contrib.sessions.backends.db.SessionStore.acreate_model_instance(data)See create_model_instance().
method
django.contrib.sessions.backends.db.SessionStore.asave(must_create=False)See save().
class
django.contrib.sessions.backends.file.SessionStoreImplement a file based session store.
class
django.contrib.sessions.exceptions.InvalidSessionKeyInvalid characters in session key
class
django.contrib.sessions.exceptions.SessionInterruptedThe session was interrupted.
class
django.contrib.sessions.exceptions.SuspiciousSessionThe session may be tampered with
class
django.contrib.sessions.models.SessionDjango provides full support for anonymous sessions.
class
django.contrib.staticfiles.handlers.StaticFilesHandlerMixinCommon methods used by WSGI and ASGI handlers.
method
django.contrib.staticfiles.handlers.StaticFilesHandlerMixin.serve(request)Serve the request path.
method
django.contrib.staticfiles.management.commands.collectstatic.Command.log(msg, level=2)Small log helper
class
django.contrib.staticfiles.storage.StaticFilesStorageStandard file system storage for static files.
method
django.core.cache.backends.base.BaseCache.aget_many(keys, version=None)See get_many().
method
django.core.cache.backends.base.BaseCache.aget_or_set(key, default, timeout=DEFAULT_TIMEOUT, version=None)See get_or_set().
method
django.core.cache.backends.base.BaseCache.aincr(key, delta=1, version=None)See incr().
method
django.core.cache.backends.base.BaseCache.aincr_version(key, delta=1, version=None)See incr_version().
method
django.core.cache.backends.base.BaseCache.close(**kwargs)Close the cache connection
method
django.core.cache.backends.base.BaseCache.set(key, value, timeout=DEFAULT_TIMEOUT, version=None)Set a value in the cache.
class
django.core.cache.backends.db.OptionsA class that will quack like a Django model _meta class.
class
django.core.cache.backends.memcached.PyLibMCCacheAn implementation of a cache binding using pylibmc
class
django.core.cache.backends.memcached.PyMemcacheCacheAn implementation of a cache binding using pymemcache.
class
django.core.checks.registry.TagsBuilt-in tags for internal checks.
func
django.core.checks.urls.check_resolver(resolver)Recursively check the resolver.
class
django.core.exceptions.AppRegistryNotReadyThe django.apps registry is not populated yet
class
django.core.exceptions.BadRequestThe request is malformed and cannot be processed.
class
django.core.exceptions.DisallowedHostHTTP_HOST header contains invalid value
class
django.core.exceptions.DisallowedRedirectRedirect was too long or scheme was not in allowed list.
class
django.core.exceptions.EmptyResultSetA database query predicate is impossible.
class
django.core.exceptions.FieldDoesNotExistThe requested model field does not exist
class
django.core.exceptions.FieldErrorSome kind of problem with a model field.
class
django.core.exceptions.FieldFetchBlockedOn-demand fetching of a model field blocked.
class
django.core.exceptions.FullResultSetA database query predicate that matches everything.
class
django.core.exceptions.ImproperlyConfiguredDjango is somehow improperly configured
class
django.core.exceptions.MiddlewareNotUsedThis middleware is not used in this server configuration
class
django.core.exceptions.ObjectDoesNotExistThe requested object does not exist
class
django.core.exceptions.ObjectNotUpdatedThe updated object no longer exists.
class
django.core.exceptions.PermissionDeniedThe user did not have permission to do that
class
django.core.exceptions.RequestAbortedThe request was closed before it was completed, or timed out.
class
django.core.exceptions.SuspiciousFileOperationA Suspicious filesystem operation was attempted
class
django.core.exceptions.SuspiciousMultipartFormSuspect MIME request in multipart form data
class
django.core.exceptions.SuspiciousOperationThe user did something suspicious
class
django.core.exceptions.ValidationErrorAn error while validating data.
class
django.core.exceptions.ViewDoesNotExistThe requested view does not exist
class
django.core.files.storage.filesystem.FileSystemStorageStandard filesystem storage
class
django.core.files.storage.memory.InMemoryDirNodeHelper class representing an in-memory directory node.
class
django.core.files.storage.memory.InMemoryFileNodeHelper class representing an in-memory file node.
class
django.core.files.storage.memory.InMemoryStorageA storage saving files in memory.
class
django.core.files.uploadedfile.InMemoryUploadedFileA file uploaded into memory (i.e.
class
django.core.files.uploadedfile.TemporaryUploadedFileA file uploaded to a temporary location (i.e.
class
django.core.files.uploadhandler.FileUploadHandlerBase class for streaming upload handlers.
class
django.core.files.uploadhandler.StopUploadThis exception is raised when an upload must abort.
class
django.core.files.uploadhandler.UploadFileExceptionAny error having to do with uploading files.
class
django.core.handlers.asgi.ASGIHandlerHandler for ASGI requests.
method
django.core.handlers.asgi.ASGIHandler.handle(scope, receive, send)Handles the ASGI request.
method
django.core.handlers.asgi.ASGIHandler.run_get_response(request)Get async response.
class
django.core.mail.backends.base.BaseEmailBackendBase class for email backend implementations.
method
django.core.mail.backends.base.BaseEmailBackend.close()Close a network connection.
method
django.core.mail.backends.base.BaseEmailBackend.open()Open a network connection.
class
django.core.mail.backends.locmem.EmailBackendAn email backend for use during test sessions.
class
django.core.mail.backends.smtp.EmailBackendA wrapper that manages the SMTP network connection.
class
django.core.mail.exceptions.InvalidMailerA settings.MAILERS entry has a configuration error.
class
django.core.mail.exceptions.MailerDoesNotExistThe requested alias is not defined in settings.MAILERS.
class
django.core.mail.message.EmailMessageA container for email information.
method
django.core.mail.message.EmailMessage.send(fail_silently=False, *using=None)Send the email message.
method
django.core.management.base.BaseCommand.handle(*args, **options)The actual logic of the command.
class
django.core.management.base.OutputWrapperWrapper around stdout/stderr
class
django.core.management.base.SystemCheckErrorThe system check framework detected unrecoverable errors.
method
django.core.management.commands.loaddata.Command.save_obj(obj)Save an object if permitted.
func
django.core.management.execute_from_command_line(argv=None)Run a ManagementUtility.
func
django.core.management.utils.popen_wrapper(args, stdout_encoding='utf-8')Friendly wrapper around Popen.
method
django.core.paginator.Paginator.num_pages()Return the total number of pages.
class
django.core.serializers.base.DeserializationErrorSomething bad happened during deserialization.
class
django.core.serializers.base.DeserializedObjectA deserialized model.
class
django.core.serializers.base.DeserializerAbstract base deserializer class.
class
django.core.serializers.base.SerializationErrorSomething bad happened during serialization.
class
django.core.serializers.base.SerializerAbstract serializer base class.
method
django.core.serializers.base.Serializer.handle_m2m_field(obj, field)Called to handle a ManyToManyField.
class
django.core.serializers.base.SerializerDoesNotExistThe requested serializer was not found.
func
django.core.serializers.base.build_instance(Model, data, db)Build a model instance.
func
django.core.serializers.deserialize(format, stream_or_string, **options)Deserialize a stream or a string.
class
django.core.serializers.json.DeserializerDeserialize a stream or string of JSON data.
class
django.core.serializers.json.SerializerConvert a queryset to JSON.
class
django.core.serializers.jsonl.DeserializerDeserialize a stream or string of JSON data.
class
django.core.serializers.jsonl.SerializerConvert a queryset to JSON Lines.
class
django.core.serializers.python.SerializerSerialize a QuerySet to basic Python objects.
class
django.core.serializers.pyyaml.DeserializerDeserialize a stream or string of YAML data.
class
django.core.serializers.pyyaml.SerializerConvert a queryset to YAML.
func
django.core.serializers.register_serializer(format, serializer_module, serializers=None)Register a new serializer.
func
django.core.serializers.unregister_serializer(format)Unregister a given serializer.
class
django.core.serializers.xml_serializer.DTDForbiddenDocument type definition is forbidden.
class
django.core.serializers.xml_serializer.DefusedExpatParserAn expat parser hardened against XML bomb attacks.
class
django.core.serializers.xml_serializer.DefusedXmlExceptionBase exception.
class
django.core.serializers.xml_serializer.DeserializerDeserialize XML.
class
django.core.serializers.xml_serializer.EntitiesForbiddenEntity definition is forbidden.
class
django.core.serializers.xml_serializer.ExternalReferenceForbiddenResolving an external reference is forbidden.
class
django.core.serializers.xml_serializer.SerializerSerialize a QuerySet to XML.
method
django.core.serializers.xml_serializer.Serializer.handle_m2m_field(obj, field)Handle a ManyToManyField.
class
django.core.servers.basehttp.ThreadedWSGIServerA threaded version of the WSGIServer
class
django.core.servers.basehttp.WSGIServerBaseHTTPServer that implements the Python WSGI protocol
class
django.core.signing.BadSignatureSignature does not match.
class
django.core.signing.SignatureExpiredSignature timestamp is older than required max_age.
class
django.db.backends.base.base.BaseDatabaseWrapperRepresent a database connection.
method
django.db.backends.base.base.BaseDatabaseWrapper.connect()Connect to the database.
method
django.db.backends.base.base.BaseDatabaseWrapper.copy(alias=None)Return a copy of this connection.
method
django.db.backends.base.base.BaseDatabaseWrapper.create_cursor(name=None)Create a cursor.
method
django.db.backends.base.base.BaseDatabaseWrapper.get_autocommit()Get the autocommit state.
method
django.db.backends.base.base.BaseDatabaseWrapper.savepoint_commit(sid)Release a savepoint.
method
django.db.backends.base.base.BaseDatabaseWrapper.savepoint_rollback(sid)Roll back to a savepoint.
class
django.db.backends.base.validation.BaseDatabaseValidationEncapsulate backend-specific validation.
class
django.db.backends.ddl_references.ColumnsHold a reference to one or many columns.
class
django.db.backends.ddl_references.ForeignKeyNameHold a reference to a foreign key name.
class
django.db.backends.ddl_references.IndexNameHold a reference to an index name.
class
django.db.backends.ddl_references.ReferenceBase class that defines the reference interface.
class
django.db.backends.ddl_references.StatementStatement template and formatting parameters container.
class
django.db.backends.ddl_references.TableHold a reference to a table.
class
django.db.backends.ddl_references.TableColumnsBase class for references to multiple columns of a table.
class
django.db.backends.oracle.base.FormatStylePlaceholderCursorDjango uses "format" (e.g.
class
django.db.backends.oracle.base.OracleParamWrapper object for formatting parameters for Oracle.
class
django.db.backends.postgresql.base.CursorMixinA subclass of psycopg cursor implementing callproc.
class
django.db.backends.postgresql.psycopg_any.DjangoRangeDumperA Range dumper customized for Django.
class
django.db.migrations.exceptions.AmbiguityErrorMore than one migration matches a name prefix.
class
django.db.migrations.exceptions.BadMigrationErrorThere's a bad migration (unreadable/bad format/etc.).
class
django.db.migrations.exceptions.CircularDependencyErrorThere's an impossible-to-resolve circular dependency.
class
django.db.migrations.exceptions.InvalidBasesErrorA model's base classes can't be resolved.
class
django.db.migrations.exceptions.IrreversibleErrorAn irreversible migration is about to be reversed.
class
django.db.migrations.graph.DummyNodeA node that doesn't correspond to a migration file on disk.
class
django.db.migrations.graph.MigrationGraphRepresent the digraph of all migrations in a project.
class
django.db.migrations.graph.NodeA single node in the migration graph.
class
django.db.migrations.migration.MigrationThe base class for all migrations.
class
django.db.migrations.operations.base.OperationBase class for migration operations.
class
django.db.migrations.operations.fields.AddFieldAdd a field to a model.
class
django.db.migrations.operations.fields.AlterFieldAlter a field's database column (e.g.
class
django.db.migrations.operations.fields.RemoveFieldRemove a field from a model.
class
django.db.migrations.operations.fields.RenameFieldRename a field on the model.
class
django.db.migrations.operations.models.AddIndexAdd an index on a model.
class
django.db.migrations.operations.models.AlterIndexTogetherChange the value of index_together to the target one.
class
django.db.migrations.operations.models.AlterModelManagersAlter the model's managers.
class
django.db.migrations.operations.models.AlterModelTableRename a model's table.
class
django.db.migrations.operations.models.CreateModelCreate a model's table.
class
django.db.migrations.operations.models.DeleteModelDrop a model's table.
class
django.db.migrations.operations.models.RemoveIndexRemove an index from a model.
class
django.db.migrations.operations.models.RenameIndexRename an index.
class
django.db.migrations.operations.models.RenameModelRename a model.
class
django.db.migrations.operations.special.RunSQLRun some raw SQL.
class
django.db.migrations.recorder.MigrationRecorderDeal with storing migration records in the database.
method
django.db.migrations.recorder.MigrationRecorder.flush()Delete all migration records.
class
django.db.migrations.serializer.DateTimeSerializerFor datetime.*, except datetime.datetime.
class
django.db.migrations.serializer.DatetimeDatetimeSerializerFor datetime.datetime.
class
django.db.migrations.state.AppConfigStubStub of an AppConfig.
class
django.db.migrations.state.ModelStateRepresent a Django Model.
class
django.db.migrations.state.ProjectStateRepresent the entire project's overall state.
class
django.db.models.base.ModelBaseMetaclass for all models.
class
django.db.models.base.ModelStateStore model instance state.
func
django.db.models.base.subclass_exception(name, bases, module, attached_to)Create exception subclass.
method
django.db.models.deletion.Collector.add_field_update(field, value, objs)Schedule a field update.
class
django.db.models.enums.ChoicesClass for creating enumerated choices.
class
django.db.models.enums.ChoicesTypeA metaclass for creating a enum choices.
class
django.db.models.enums.IntegerChoicesClass for creating enumerated integer choices.
class
django.db.models.enums.TextChoicesClass for creating enumerated string choices.
class
django.db.models.expressions.BaseExpressionBase class for all query expressions.
class
django.db.models.expressions.ExpressionAn expression that can be combined with other expressions.
class
django.db.models.expressions.ExpressionListAn expression containing multiple expressions.
class
django.db.models.expressions.FAn object capable of resolving references to existing query objects.
class
django.db.models.expressions.FuncAn SQL function call.
class
django.db.models.expressions.JSONNullRepresent JSON `null` primitive.
class
django.db.models.expressions.NegatedExpressionThe logical negation of a conditional expression.
class
django.db.models.expressions.RefReference to column alias of the query.
class
django.db.models.expressions.ResolvedOuterRefAn object that contains a reference to an outer query.
class
django.db.models.expressions.SlicedAn object that contains a slice of an F expression.
class
django.db.models.expressions.SubqueryAn explicit subquery.
class
django.db.models.expressions.ValueRepresent a wrapped value as a node within an expression.
class
django.db.models.expressions.WindowFrameModel the frame clause in window expressions.
class
django.db.models.fields.DurationFieldStore timedelta objects.
class
django.db.models.fields.FieldBase class for all field types
method
django.db.models.fields.Field.flatchoices()Flattened version of choices tuple.
method
django.db.models.fields.Field.select_format(compiler, sql, params)Custom format for select clauses.
method
django.db.models.fields.Field.slice_expression(expression, start, length)Return a slice of this field.
class
django.db.models.fields.files.FileDescriptorThe descriptor for the file attribute on the model instance.
class
django.db.models.fields.files.ImageFileDescriptorJust like the FileDescriptor, but for ImageFields.
class
django.db.models.fields.mixins.FieldCacheMixinAn API for working with the model's fields value cache.
class
django.db.models.fields.related.RelatedFieldBase class that all relational fields inherit from.
class
django.db.models.functions.comparison.CastCoerce an expression to a new field type.
class
django.db.models.functions.comparison.CoalesceReturn, from left to right, the first non-null expression.
class
django.db.models.functions.comparison.GreatestReturn the maximum expression.
class
django.db.models.functions.comparison.LeastReturn the minimum expression.
class
django.db.models.functions.datetime.ExtractIsoWeekDayReturn Monday=1 through Sunday=7, based on ISO-8601.
class
django.db.models.functions.datetime.ExtractIsoYearReturn the ISO-8601 week-numbering year.
class
django.db.models.functions.datetime.ExtractWeekDayReturn Sunday=1 through Saturday=7.
class
django.db.models.functions.datetime.TruncWeekTruncate to midnight on the Monday of the week.
class
django.db.models.functions.text.ConcatConcatenate text fields together.
class
django.db.models.functions.text.ConcatPairConcatenate two arguments together.
class
django.db.models.functions.text.LengthReturn the number of characters in the expression.
method
django.db.models.indexes.Index.clone()Create a copy of this Index.
class
django.db.models.indexes.IndexExpressionOrder and wrap expressions for CREATE INDEX statements.
class
django.db.models.lookups.IntegerFieldFloatRoundingAllow floats to work as query values for IntegerField.
class
django.db.models.lookups.PostgresOperatorLookupLookup defined by operators on PostgreSQL.
method
django.db.models.manager.BaseManager.get_queryset()Return a new QuerySet object.
class
django.db.models.query.ModelIterableIterable that yields a model instance for each row.
class
django.db.models.query.QuerySetRepresent a lazy database lookup for a set of objects.
method
django.db.models.query.QuerySet.fetch_mode(fetch_mode)Set the fetch mode for the QuerySet.
method
django.db.models.query.QuerySet.none()Return an empty QuerySet.
method
django.db.models.query.QuerySet.only(*fields)Essentially, the opposite of defer().
method
django.db.models.query.QuerySet.reverse()Reverse the ordering of the QuerySet.
class
django.db.models.query_utils.DeferredAttributeA wrapper for a deferred-loading field.
class
django.db.models.query_utils.FilteredRelationSpecify custom filtering in the ON clause of SQL joins.
method
django.db.models.sql.compiler.SQLCompiler.has_results()Backends (e.g.
class
django.db.models.sql.query.QueryA single SQL query.
method
django.db.models.sql.query.Query.clear_limits()Clear any existing limits.
method
django.db.models.sql.query.Query.clone()Return a copy of the current Query.
class
django.db.models.sql.query.RawQueryA single raw SQL query.
class
django.db.models.sql.subqueries.DeleteQueryA DELETE SQL query.
class
django.db.models.sql.subqueries.UpdateQueryAn UPDATE SQL query.
class
django.db.models.sql.where.NothingNodeA node that matches nothing.
class
django.db.models.sql.where.WhereNodeAn SQL WHERE clause.
class
django.db.transaction.AtomicGuarantee the atomic execution of a given block.
class
django.db.transaction.TransactionManagementErrorTransaction management is used improperly.
func
django.db.transaction.commit(using=None)Commit a transaction.
func
django.db.transaction.rollback(using=None)Roll back a transaction.
class
django.forms.boundfield.BoundFieldA Field plus data
class
django.forms.boundfield.BoundWidgetA container class used for iterating over widgets.
method
django.forms.fields.BooleanField.to_python(value)Return a Python boolean object.
class
django.forms.fields.MultiValueFieldAggregate the logic of multiple Fields.
class
django.forms.fields.NullBooleanFieldA field whose valid values are None, True, and False.
class
django.forms.forms.BaseFormThe main implementation of all the Form logic.
method
django.forms.forms.BaseForm.add_error(field, error)Update the content of `self._errors`.
class
django.forms.forms.DeclarativeFieldsMetaclassCollect Fields declared on the base classes.
class
django.forms.forms.FormA collection of Fields, plus their associated data.
class
django.forms.formsets.BaseFormSetA collection of instances of the same Form class.
class
django.forms.models.BaseInlineFormSetA formset for child objects related to a parent.
class
django.forms.models.ModelChoiceFieldA ChoiceField whose choices are a model QuerySet.
class
django.forms.models.ModelMultipleChoiceFieldA MultipleChoiceField whose choices are a model QuerySet.
func
django.forms.utils.pretty_name(name)Convert 'first_name' to 'First name'.
method
django.forms.widgets.FileInput.format_value(value)File input never renders a value.
class
django.forms.widgets.InputBase class for all <input> widgets.
class
django.forms.widgets.MediaDefiningClassMetaclass for classes that can have media definitions.
class
django.forms.widgets.MultiWidgetA widget that is composed of multiple widgets.
class
django.forms.widgets.NullBooleanSelectA Select Widget intended to be used with NullBooleanField.
class
django.forms.widgets.SelectDateWidgetA widget that splits date input into three <select> boxes.
method
django.forms.widgets.Widget.build_attrs(base_attrs, extra_attrs=None)Build an attribute dictionary.
class
django.http.multipartparser.BoundaryIterA Producer that is sensitive to boundaries.
class
django.http.multipartparser.ChunkIterAn iterable that will yield chunks of data.
class
django.http.multipartparser.InputStreamExhaustedNo more reads are allowed from this device.
class
django.http.multipartparser.InterBoundaryIterA Producer that will iterate over boundaries.
class
django.http.multipartparser.MultiPartParserAn RFC 7578 multipart/form-data parser.
この情報について
掲載しているシグネチャは django/django の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。