BaseCommand.can_import_settings A boolean indicating whether the command needs to be able to import Django settings; if True
BaseCommand.leave_locale_alone A boolean indicating whether the locale set in settings should be preserved during the execution
class LabelCommand A management command which takes one or more arbitrary arguments (labels) on the command line, and does something
Introduction The model reference documentation explains how to use Django’s standard field classes –
get_available_name(name, max_length=None) Returns a filename that is available in the storage mechanism, possibly taking the
It’s sometimes useful to pre-populate your database with hard-coded data when you’re first setting up an app. You can provide initial data via fixtures.
django.template.Library.filter() Once you’ve written your filter definition, you need to register it with your Library
_open(name, mode='rb') Required. Called by Storage.open(), this
Since keeping multiple authentication databases in sync is a common problem when dealing with Apache, you can configure Apache to authenticate against Django’s
This document explains how to structure and write database migrations for different scenarios you might encounter. For introductory material on migrations, see the
Page 2 of 6