APress The Definitive Guide To Django
User Manual:
Open the PDF directly: View PDF
Page Count: 474 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- The Definitive Guide to Django:
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Introduction to Django
- Getting Started
- The Basics of Dynamic Web Pages
- The Django Template System
- Interacting with a Database: Models
- The “Dumb” Way to Do Database Queries in Views
- The MTV Development Pattern
- Configuring the Database
- Your First App
- Defining Models in Python
- Your First Model
- Installing the Model
- Basic Data Access
- Adding Model String Representations
- Inserting and Updating Data
- Selecting Objects
- Deleting Objects
- Making Changes to a Database Schema
- What’s Next?
- The Django Administration Site
- Form Processing
- Advanced Views and URLconfs
- URLconf Tricks
- Streamlining Function Imports
- Using Multiple View Prefixes
- Special-Casing URLs in Debug Mode
- Using Named Groups
- Understanding the Matching/Grouping Algorithm
- Passing Extra Options to View Functions
- Using Default View Arguments
- Special-Casing Views
- Capturing Text in URLs
- Determining What the URLconf Searches Against
- Including Other URLconfs
- What’s Next?
- URLconf Tricks
- Generic Views
- Extending the Template Engine
- Template Language Review
- RequestContext and Context Processors
- Inside Template Loading
- Extending the Template System
- Writing Custom Template Loaders
- Using the Built-in Template Reference
- Configuring the Template System in Standalone Mode
- What’s Next?
- Generating Non-HTML Content
- Sessions, Users, and Registration
- Caching
- Other Contributed Subframeworks
- The Django Standard Library
- Sites
- Flatpages
- Redirects
- CSRF Protection
- Form Tools
- Humanizing Data
- Markup Filters
- What’s Next?
- Middleware
- Integrating with Legacy Databases and Applications
- Extending Django’s Admin Interface
- Internationalization
- Specifying Translation Strings in Python Code
- Specifying Translation Strings in Template Code
- Creating Language Files
- How Django Discovers Language Preference
- The set_language Redirect View
- Using Translations in Your Own Projects
- Translations and JavaScript
- Notes for Users Familiar with gettext
- What’s Next?
- Security
- Deploying Django
- Case Studies
- Model Definition Reference
- Fields
- Field Name Restrictions
- AutoField
- BooleanField
- CharField
- CommaSeparatedIntegerField
- DateField
- DateTimeField
- EmailField
- FileField
- FilePathField
- FloatField
- ImageField
- IntegerField
- IPAddressField
- NullBooleanField
- PhoneNumberField
- PositiveIntegerField
- PositiveSmallIntegerField
- SlugField
- SmallIntegerField
- TextField
- TimeField
- URLField
- USStateField
- XMLField
- Universal Field Options
- Relationships
- Model Metadata Options
- Managers
- Model Methods
- Admin Options
- Fields
- Database API Reference
- Creating Objects
- Saving Changes to Objects
- Retrieving Objects
- Caching and QuerySets
- Filtering Objects
- Field Lookups
- Complex Lookups with Q Objects
- Related Objects
- Deleting Objects
- Extra Instance Methods
- Shortcuts
- Falling Back to Raw SQL
- Generic View Reference
- Settings
- What’s a Settings File?
- Designating the Settings: DJANGO_SETTINGS_MODULE
- Using Settings Without Setting DJANGO_SETTINGS_MODULE
- Available Settings
- ABSOLUTE_URL_OVERRIDES
- ADMIN_FOR
- ADMIN_MEDIA_PREFIX
- ADMINS
- ALLOWED_INCLUDE_ROOTS
- APPEND_SLASH
- CACHE_BACKEND
- CACHE_MIDDLEWARE_KEY_PREFIX
- DATABASE_ENGINE
- DATABASE_HOST
- DATABASE_NAME
- DATABASE_OPTIONS
- DATABASE_PASSWORD
- DATABASE_PORT
- DATABASE_USER
- DATE_FORMAT
- DATETIME_FORMAT
- DEBUG
- DEFAULT_CHARSET
- DEFAULT_CONTENT_TYPE
- DEFAULT_FROM_EMAIL
- DISALLOWED_USER_AGENTS
- EMAIL_HOST
- EMAIL_HOST_PASSWORD
- EMAIL_HOST_USER
- EMAIL_PORT
- EMAIL_SUBJECT_PREFIX
- FIXTURE_DIRS
- IGNORABLE_404_ENDS
- IGNORABLE_404_STARTS
- INSTALLED_APPS
- INTERNAL_IPS
- JING_PATH
- LANGUAGE_CODE
- LANGUAGES
- MANAGERS
- MEDIA_ROOT
- MEDIA_URL
- MIDDLEWARE_CLASSES
- MONTH_DAY_FORMAT
- PREPEND_WWW
- PROFANITIES_LIST
- ROOT_URLCONF
- SECRET_KEY
- SEND_BROKEN_LINK_EMAILS
- SERIALIZATION_MODULES
- SERVER_EMAIL
- SESSION_COOKIE_AGE
- SESSION_COOKIE_DOMAIN
- SESSION_COOKIE_NAME
- SESSION_COOKIE_SECURE
- SESSION_EXPIRE_AT_BROWSER_CLOSE
- SESSION_SAVE_EVERY_REQUEST
- SITE_ID
- TEMPLATE_CONTEXT_PROCESSORS
- TEMPLATE_DEBUG
- TEMPLATE_DIRS
- TEMPLATE_LOADERS
- TEMPLATE_STRING_IF_INVALID
- TEST_RUNNER
- TEST_DATABASE_NAME
- TIME_FORMAT
- TIME_ZONE
- URL_VALIDATOR_USER_AGENT
- USE_ETAGS
- USE_I18N
- YEAR_MONTH_FORMAT
- Built-in Template Tags and Filters
- Built-in Tag Reference
- Built-in Filter Reference
- add
- addslashes
- capfirst
- center
- cut
- date
- default
- default_if_none
- dictsort
- dictsortreversed
- divisibleby
- escape
- filesizeformat
- first
- fix_ampersands
- floatformat
- get_digit
- join
- length
- length_is
- linebreaks
- linebreaksbr
- linenumbers
- ljust
- lower
- make_list
- phone2numeric
- pluralize
- pprint
- random
- removetags
- rjust
- slice
- slugify
- stringformat
- striptags
- time
- timesince
- timeuntil
- title
- truncatewords
- truncatewords_html
- unordered_list
- upper
- urlencode
- urlize
- urlizetrunc
- wordcount
- wordwrap
- yesno
- The django-admin Utility
- Usage
- Available Actions
- adminindex [appname appname ...]
- createcachetable [tablename]
- dbshell
- diffsettings
- dumpdata [appname appname ...]
- flush
- inspectdb
- loaddata [fixture fixture ...]
- reset [appname appname ...]
- runfcgi [option]
- runserver [optional port number, or ipaddr:port]
- shell
- sql [appname appname ...]
- sqlall [appname appname ...]
- sqlclear [appname appname ...]
- sqlcustom [appname appname ...]
- sqlindexes [appname appname ...]
- sqlreset [appname appname ...]
- sqlsequencereset [appname appname ...]
- startapp [appname]
- startproject [projectname]
- syncdb
- test
- validate
- Available Option
- Request and Response Objects
- Index