E-Book, Englisch, 256 Seiten
Bennett Practical Django Projects
1. ed
ISBN: 978-1-4302-0868-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
E-Book, Englisch, 256 Seiten
ISBN: 978-1-4302-0868-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
Build a Django content management system, blog, and social networking site with James Bennett as he introduces the popular Django framework. You'll work through the development of each project, implementing and running the applications while learning new features along the way. Web frameworks are playing a major role in the creation of today's most compelling web applications, because they automate many of the tedious tasks, allowing developers to instead focus on providing users with creative and powerful features. Python developers have been particularly fortunate in this area, having been able to take advantage of Django, a very popular open source web framework whose stated goal is to 'make it easier to build better web applications more quickly with less code.' Practical Django Projects is the first book to introduce this popular framework by way of a series of real-world projects.
James Bennett is a web developer for the World Company of Lawrence, Kansas, and is a major contributor to the Django project. His current role within the Django community is as the software project's release manager.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents at a Glance;5
2;Contents;6
3;About the Author;11
4;About the Technical Reviewer;12
5;Introduction;13
6;Welcome to Django;14
6.1;What’s a Web Framework and Why Should I Want One?;14
6.2;Say Hello to Django;15
6.3;Say Hello to Python;16
6.4;Installing Django;17
6.5;Your First Steps with Django;18
6.6;Exploring Your Django Project;20
6.7;Looking Ahead;21
7;Your First Django Site: A Simple CMS;22
7.1;Configuring Your First Django Project;22
7.2;Putting Together the CMS;25
7.3;A Quick Introduction to the Django Template System;31
7.4;Looking Ahead;34
8;Customizing the Simple CMS;35
8.1;Adding Rich-Text Editing;35
8.2;Adding a Search System to the CMS;38
8.3;Improving the Search View;43
8.4;Improving the Search Function with Keywords;45
8.5;Looking Ahead;52
9;A Django-Powered Weblog;54
9.1;Feature Checklist;54
9.2;Writing a Django Application;55
9.3;Creating the Weblog Application;56
9.4;Designing the Models;58
9.5;The Entry Model;63
9.6;The Weblog Models So Far;73
9.7;Writing the First Views;76
9.8;Using Django's Generic Views;80
9.9;Decoupling the URLs;83
9.10;Looking Ahead;86
10;Expanding the Weblog;87
10.1;Writing the Link Model;87
10.2;Views for the Link Model;93
10.3;Setting Up Views for Categories;94
10.4;Using Generic Views (Again);96
10.5;Views for Tags;97
10.6;Cleaning Up the URLConf;99
10.7;Handling Live Entries;103
10.8;Looking Ahead;105
11;Templates for the Weblog;106
11.1;Dealing with Repetitive Elements: The Power of Inheritance;106
11.2;Defining the Base Template for the Blog;109
11.3;Section Templates;112
11.4;Archives of Entries;113
11.5;Templates for Other Types of Content;119
11.6;Extending the Template System with Custom Tags;120
11.7;Looking Ahead;131
12;Finishing the Weblog;132
12.1;Comments and django.contrib.comments;132
12.2;Comment Moderation;138
12.3;Adding Feeds;147
12.4;Looking Ahead;155
13;A Social Code-Sharing Site;156
13.1;Feature Checklist;156
13.2;Setting Up the Application;157
13.3;Building the Initial Models;157
13.4;Testing the Snippets Application;163
13.5;Initial Views for Snippets and Languages;164
13.6;Looking Ahead;172
14;Form Processing in the Code- Sharing Application;173
14.1;A Brief Tour of Django’s Form System;173
14.2;A Form for Adding Code Snippets;183
14.3;Automatically Generating a Form for Adding Snippets;188
14.4;Simplifying Templates That Display Forms;191
14.5;Editing Snippets;192
14.6;Looking Ahead;194
15;Finishing the Code-Sharing Application;195
15.1;Bookmarking Snippets;195
15.2;Basic Bookmark Views;196
15.3;A New Template Tag: {% if_bookmarked %};200
15.4;Using RequestContext to Automatically Populate Template Variables;204
15.5;Adding the User Rating System;206
15.6;Looking Ahead;212
16;Writing Reusable Django Applications;213
16.1;One Thing at a Time;214
16.2;Developing Multiple Applications;216
16.3;Building for Flexibility;218
16.4;Distributing Django Applications;225
16.5;Looking Ahead;232
17;Index;233




