django函数集

django函数集

VERSION

count
index

apps

AppConfig
apps
config
registry

conf

DEFAULT_CONTENT_TYPE_DEPRECATED_MSG
ENVIRONMENT_VARIABLE
FILE_CHARSET_DEPRECATED_MSG
ImproperlyConfigured
LazyObject
LazySettings
Path
RemovedInDjango30Warning
RemovedInDjango31Warning
Settings
SettingsReference
UserSettingsHolder
django
empty
global_settings
importlib
locale
os
settings
time
traceback
warnings

core

cache
checks
exceptions
files
serializers
signals
signing
validators

db

ConnectionHandler
ConnectionRouter
DEFAULT_DB_ALIAS
DJANGO_VERSION_PICKLE_KEY
DataError
DatabaseError
DefaultConnectionProxy
Error
IntegrityError
InterfaceError
InternalError
NotSupportedError
OperationalError
ProgrammingError
backends
close_old_connections
connection
connections
models
reset_queries
router
signals
transaction
utils

dispatch

Signal
dispatcher
receiver

forms

ALL_FIELDS
BaseForm
BaseFormSet
BaseInlineFormSet
BaseModelForm
BaseModelFormSet
BooleanField
BoundField
CharField
CheckboxInput
CheckboxSelectMultiple
ChoiceField
ClearableFileInput
ComboField
DateField
DateInput
DateTimeField
DateTimeInput
DecimalField
DurationField
EmailField
EmailInput
Field
FileField
FileInput
FilePathField
FloatField
Form
GenericIPAddressField
HiddenInput
ImageField
IntegerField
Media
MediaDefiningClass
ModelChoiceField
ModelForm
ModelMultipleChoiceField
MultiValueField
MultiWidget
MultipleChoiceField
MultipleHiddenInput
NullBooleanField
NullBooleanSelect
NumberInput
PasswordInput
RadioSelect
RegexField
Select
SelectDateWidget
SelectMultiple
SlugField
SplitDateTimeField
SplitDateTimeWidget
SplitHiddenDateTimeWidget
TextInput
Textarea
TimeField
TimeInput
TypedChoiceField
TypedMultipleChoiceField
URLField
URLInput
UUIDField
ValidationError
Widget
all_valid
boundfield
fields
fields_for_model
forms
formset_factory
formsets
inlineformset_factory
model_to_dict
modelform_factory
modelformset_factory
models
renderers
utils
widgets

get_version

http

BadHeaderError
FileResponse
Http404
HttpRequest
HttpResponse
HttpResponseBadRequest
HttpResponseForbidden
HttpResponseGone
HttpResponseNotAllowed
HttpResponseNotFound
HttpResponseNotModified
HttpResponsePermanentRedirect
HttpResponseRedirect
HttpResponseServerError
JsonResponse
QueryDict
RawPostDataException
SimpleCookie
StreamingHttpResponse
UnreadablePostError
cookie
multipartparser
parse_cookie
request
response

setup

shortcuts

Http404
HttpResponse
HttpResponsePermanentRedirect
HttpResponseRedirect
NoReverseMatch
Promise
RemovedInDjango30Warning
_get_queryset
get_list_or_404
get_object_or_404
loader
redirect
render
render_to_response
resolve_url
reverse
warnings

template

Context
ContextPopException
Engine
EngineHandler
Library
Node
NodeList
Origin
RequestContext
Template
TemplateDoesNotExist
TemplateSyntaxError
Variable
VariableDoesNotExist
backends
base
context
engine
engines
exceptions
library
loader
utils

templatetags

static

urls

LocalePrefixPattern
NoReverseMatch
Resolver404
ResolverMatch
URLPattern
URLResolver
base
clear_script_prefix
clear_url_caches
conf
converters
exceptions
get_callable
get_mod_func
get_ns_resolver
get_resolver
get_script_prefix
get_urlconf
include
is_valid_path
path
re_path
register_converter
resolve
resolvers
reverse
reverse_lazy
set_script_prefix
set_urlconf
translate_url
utils

utils

_os
autoreload
baseconv
crypto
datastructures
dateformat
dateparse
dates
datetime_safe
deconstruct
deprecation
duration
encoding
formats
functional
hashable
html
http
inspect
ipv6
itercompat
module_loading
numberformat
regex_helper
safestring
six
text
timezone
topological_sort
translation
tree
version
# 文档导出 可以自定义导出django的各个函数了解
import django
import django.template
import django.shortcuts
import os


content = 'django函数集\n\n'
file = os.path.dirname(__file__) + '/doc.txt'

django_funcs = dir(django)
for func in django_funcs:
    if '__' not in func:
        print(func)
        content = content + func + '\n'
        funct = getattr(django, func)
        for f in dir(funct):
            if '__' not in f:
                content = content + '\t' + f + '\n'

with open(file, 'w') as f:
    f.write(content)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值