内核

core.admin

Django admin interface for core models.

core.forms

class core.forms.FacetField(choices=(), required=True, widget=None, label=None, initial=None, help_text=None, *args, **kwargs)

For filtering searches on a facet, with validation for the format of facet values.

valid_value(value)

Although this is a choice field, no choices need to be supplied. Instead, we just validate that the value is in the correct format for facet filtering (facet_name:value)

class core.forms.FacetedSearchForm(*args, **kwargs)

Supports fetching faceted results with a corresponding query.

facets
A list of facet names for which to get facet counts
models
Limit the search to one or more models

core.models

class core.models.UserProfile(*args, **kwargs)

Additional information about a User.

get_contribution_details()

Gets the line to put into commits to attribute the author.

Returns a tuple (name, email)

core.search_sites

core.views

Core views, including the main homepage, post-commit build hook, documentation and header rendering, and server errors.

core.views.github_build(*args, **kwargs)

A post-commit hook for github.

core.views.server_error(request, template_name='500.html')

A simple 500 handler so we get media

core.views.server_error_404(request, template_name='404.html')

A simple 500 handler so we get media

core.views.subdomain_handler(request, lang_slug=None, version_slug=None, filename='')

This provides the fall-back routing for subdomain requests.

This was made primarily to redirect old subdomain’s to their version’d brothers.

core.management.commands

This is where custom manage.py commands are defined.

class core.management.commands.update_repos.Command

Custom management command to rebuild documentation for all projects on the site. Invoked via ./manage.py update_repos.

Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.