db.models.signals.pre_init

django.db.models.signals.pre_init Whenever you instantiate a Django model, this signal is sent at the beginning of the model’s __init__() method. Arguments sent with this signal:

postgres.aggregates.Corr

class Corr(y, x) [source] Returns the correlation coefficient as a float, or None if there aren’t any matching rows.

test.Response.content

content The body of the response, as a bytestring. This is the final page content as rendered by the view, or any error message.

admin.ModelAdmin.get_fieldsets()

ModelAdmin.get_fieldsets(request, obj=None) The get_fieldsets method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a list of two-tuples, in which each two-tuple represents a <fieldset> on the admin form page, as described above in the ModelAdmin.fieldsets section.

auth.models.Permission

class models.Permission

db.models.Options.db_table

Options.db_table The name of the database table to use for the model: db_table = 'music_album'

template.Engine

class Engine(dirs=None, app_dirs=False, context_processors=None, debug=False, loaders=None, string_if_invalid='', file_charset='utf-8', libraries=None, builtins=None, autoescape=True) [source] When instantiating an Engine all arguments must be passed as keyword arguments: dirs is a list of directories where the engine should look for template source files. It is used to configure filesystem.Loader. It defaults to an empty list. app_dirs only affects the default value of loaders. See below

forms.Field.validators

Field.validators The validators argument lets you provide a list of validation functions for this field. See the validators documentation for more information.

auth.models.CustomUserManager.create_user()

create_user(*username_field*, password=None, **other_fields) The prototype of create_user() should accept the username field, plus all required fields as arguments. For example, if your user model uses email as the username field, and has date_of_birth as a required field, then create_user should be defined as: def create_user(self, email, date_of_birth, password=None): # create user here ...

urls.get_script_prefix()

get_script_prefix() [source] Normally, you should always use reverse() to define URLs within your application. However, if your application constructs part of the URL hierarchy itself, you may occasionally need to generate URLs. In that case, you need to be able to find the base URL of the Django project within its Web server (normally, reverse() takes care of this for you). In that case, you can call get_script_prefix(), which will return the script prefix portion of the URL for your Django