utils.functional.allow_lazy()

allow_lazy(func, *resultclasses) [source] Deprecated since version 1.10. Works like keep_lazy() except that it can’t be used as a decorator.

auth.backends.AllowAllUsersRemoteUserBackend

class AllowAllUsersRemoteUserBackend New in Django 1.10. Same as RemoteUserBackend except that it doesn’t reject inactive users because user_can_authenticate always returns True.

db.models.Model.pk

Model.pk Regardless of whether you define a primary key field yourself, or let Django supply one for you, each model will have a property called pk. It behaves like a normal attribute on the model, but is actually an alias for whichever attribute is the primary key field for the model. You can read and set this value, just as you would for any other attribute, and it will update the correct field in the model.

db.migrations.operations.RenameField

class RenameField(model_name, old_name, new_name) [source] Changes a field’s name (and, unless db_column is set, its column name).

views.generic.dates.MonthMixin.month

month Optional The value for the month, as a string. By default, set to None, which means the month will be determined using other means.

admin.InlineModelAdmin.fk_name

InlineModelAdmin.fk_name The name of the foreign key on the model. In most cases this will be dealt with automatically, but fk_name must be specified explicitly if there are more than one foreign key to the same parent model.

How to install Django on Windows

This document will guide you through installing Python 3.5 and Django on Windows. It also provides instructions for installing virtualenv and virtualenvwrapper, which make it easier to work on Python projects. This is meant as a beginner’s guide for users working on Django projects and does not reflect how Django should be installed when developing patches for Django itself. The steps in this guide have been tested with Windows 7, 8, and 10. In other versions, the steps would be similar. You wi

auth.models.User.has_module_perms()

has_module_perms(package_name) Returns True if the user has any permissions in the given package (the Django app label). If the user is inactive, this method will always return False.

dispatch.Signal.send()

Signal.send(sender, **kwargs) [source]

core.files.uploadedfile.InMemoryUploadedFile

class InMemoryUploadedFile [source] A file uploaded into memory (i.e. stream-to-memory). This class is used by the MemoryFileUploadHandler.