PacktLib: Learning Website Development with Django

Learning Website Development with Django

Credits

About the Author

About the Reviewers

Preface

Introduction to Django

The MVC Pattern in Web Development

Why Python?

Why Django?

History of Django

Summary

Getting Started

Installing the Required Software

Creating Your First Project

Summary

Building a Social Bookmarking Application

A Word about Django Terminology

URLs and Views: Creating the Main Page

Models: Designing an Initial Database Schema

Templates: Creating a Template for the Main Page

Putting It All Together: Generating User Pages

Summary

User Registration and Management

Session Authentication

Improving Template Structure

User Registration

Account Management

Summary

Introducing Tags

The Tag Data Model

Creating the Bookmark Submission Form

A Word on Security

Summary

Enhancing the User Interface with Ajax

Ajax and Its Advantages

Using an Ajax Framework in Django

The jQuery JavaScript Framework

Implementing Live Searching of Bookmarks

Editing Bookmarks in Place

Auto-Completion of Tags

Summary

Voting and Commenting

Sharing Bookmarks on the Main Page

Commenting on Bookmarks

Summary

Creating an Administration Interface

Activating the Administration Interface

Customizing the Administration Interface

Users, Groups and Permissions

Summary

Advanced Browsing and Searching

Adding RSS Feeds

Advanced Searching

Organizing Content into Pages (Pagination)

Summary

Building User Networks

Building Friend Networks

Inviting Friends Via Email

Improving the Interface with Messages

Summary

Extending and Deploying

Internationalization (i18n)

Improving Performance with Caching

Unit Testing

Deploying Django

Summary

What Next?

Custom Template Tags and Filters

Model Managers and Custom SQL

Generic Views

Contributed Sub-Frameworks

Message System

Subscription System

User Scores

Summary

Index