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.

db.models.Options.verbose_name

Options.verbose_name A human-readable name for the object, singular: verbose_name = "pizza" If this isn’t given, Django will use a munged version of the class name: CamelCase becomes camel case.

http.HttpResponseRedirect.url

url This read-only attribute represents the URL the response will redirect to (equivalent to the Location response header).

core.files.uploadedfile.InMemoryUploadedFile

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

dispatch.Signal.send()

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

db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_tablespace()

BaseDatabaseSchemaEditor.alter_db_tablespace(model, old_db_tablespace, new_db_tablespace) [source] Moves the model’s table from one tablespace to another.

http.QueryDict.getlist()

QueryDict.getlist(key, default=None) Returns the data with the requested key, as a Python list. Returns an empty list if the key doesn’t exist and no default value was provided. It’s guaranteed to return a list of some sort unless the default value provided is not a list.

views.generic.base.TemplateResponseMixin.template_name

template_name The full name of a template to use as defined by a string. Not defining a template_name will raise a django.core.exceptions.ImproperlyConfigured exception.

sessions.backends.base.SessionBase.pop()

pop(key, default=__not_given) Example: fav_color = request.session.pop('fav_color', 'blue')