Pro Django [electronic resource] /
Alchin, Marty.author.
Learn how to leverage Django, the leading Python web application development framework, to its full potential in this advanced tutorial and reference. Updated for Django 1.5 and Python 3, Pro Django, Second Edition examines in great detail the complex problems that Python web application developers can face and how to solve them. It provides in–depth information about advanced tools and techniques available in every Django installation, running the gamut from the theory of Django’s internal operations to actual code that solves real–world problems for high–volume environments. Pro Django, Second Edition goes above and beyond other books, leaving the basics far behind and showing how Django can do things even its core developers never expected. By drawing on the dynamic nature of Python, you can write Django applications that stretch the limits of what you thought possible!
""Contents at a Glance""; ""Contents""; ""About the Author""; ""About the Technical Reviewers""; ""Acknowledgments""; ""Preface""; ""Introduction""; ""Chapter 1: Understanding Django""; ""Philosophy""; ""Djangoâ€?s Interpretation of the MVC Pattern""; ""Model""; ""Template""; ""URL Configuration""; ""Loose Coupling""; ""Donâ€?t Repeat Yourself (DRY)""; ""A Focus on Readability""; ""Failing Loudly""; ""Documenting Rules""; ""Community""; ""Management of the Framework""; ""News and Resources""; ""Reusable Applications""; ""Getting Help""; ""Read the Documentation""; ""Check Your Version""
""Frequently Asked Questions (FAQ)""""Mailing Lists""; ""Internet Relay Chat (IRC)""; ""Now What?""; ""Chapter 2: Django Is Python""; ""How Python Builds Classes""; ""Building a Class Programmatically""; ""Metaclasses Change It Up""; ""Using a Base Class with a Metaclass""; ""Declarative Syntax""; ""Centralized Access""; ""The Base Class""; ""Attribute Classes""; ""Ordering Class Attributes""; ""Class Declaration""; ""Common Duck Typing Protocols""; ""Callables""; ""__call__(self[, â€?])""; ""Dictionaries""; ""__contains__(self, key)""; ""__getitem__(self, key)""
""__setitem__(self, key, value)""""Files""; ""read(self, [size])""; ""write(self, str)""; ""close(self)""; ""Iterables""; ""__iter__(self)""; ""Iterators""; ""next(self)""; ""Generators""; ""Sequences""; ""__len__(self)""; ""__getitem__(self) and __setitem__(self, value)""; ""Augmenting Functions""; ""Excess Arguments""; ""Positional Arguments""; ""Keyword Arguments""; ""Mixing Argument Types""; ""Passing Argument Collections""; ""Decorators""; ""Decorating with Extra Arguments""; ""Partial Application of Functions""; ""Back to the Decorator Problem""
""A Decorator with or without Arguments""""Descriptors""; ""__get__(self, instance, owner)""; ""__set__(self, instance, value)""; ""Keeping Track of Instance Data""; ""Introspection""; ""Common Class and Function Attributes""; ""Identifying Object Types""; ""Getting Arbitrary Object Types""; ""Checking for Specific Types""; ""Function Signatures""; ""Handling Default Values""; ""Docstrings""; ""Applied Techniques""; ""Tracking Subclasses""; ""A Simple Plugin Architecture""; ""Now What?""; ""Chapter 3: Models""; ""How Django Processes Model Classes""; ""Setting Attributes on Models""
""Getting Information About Models""""Class Information""; ""Field Definitions""; ""Primary Key Fields""; ""Configuration Options""; ""Accessing the Model Cache""; ""Retrieving All Applications""; ""Retrieving a Single Application""; ""Dealing with Individual Models""; ""Using Model Fields""; ""Common Field Attributes""; ""Common Field Methods""; ""Subclassing Fields""; ""Deciding Whether to Invent or Extend""; ""Performing Actions During Model Registration""; ""contribute_to_class(self, cls, name)""; ""contribute_to_related_class(self, cls, related)""; ""Altering Data Behavior""
""get_internal_type(self)""
Includes index.
Learn how to leverage Django, the leading Python web application development framework, to its full potential in this advanced tutorial and reference. Updated for Django 1.5 and Python 3, Pro Django, Second Edition examines in great detail the complex problems that Python web application developers can face and how to solve them. It provides in–depth information about advanced tools and techniques available in every Django installation, running the gamut from the theory of Django’s internal operations to actual code that solves real–world problems for high–volume environments. Pro Django, Second Edition goes above and beyond other books, leaving the basics far behind and showing how Django can do things even its core developers never expected. By drawing on the dynamic nature of Python, you can write Django applications that stretch the limits of what you thought possible!
Django (Electronic resource)
Computer programming.
Software engineering.
Web Development.
Software Engineering/Programming and Operating Systems.