Practical Django Projects (eBook)
256 Seiten
Apress (Verlag)
978-1-4302-0868-6 (ISBN)
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.
Build a Django content management system, blog, and social networking site with James Bennett as he introduces the popular Django framework. Youll 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 todays 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 realworld 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.
Contents at a Glance 5
Contents 6
About the Author 11
About the Technical Reviewer 12
Introduction 13
Welcome to Django 14
What’s a Web Framework and Why Should I Want One? 14
Say Hello to Django 15
Say Hello to Python 16
Installing Django 17
Your First Steps with Django 18
Exploring Your Django Project 20
Looking Ahead 21
Your First Django Site: A Simple CMS 22
Configuring Your First Django Project 22
Putting Together the CMS 25
A Quick Introduction to the Django Template System 31
Looking Ahead 34
Customizing the Simple CMS 35
Adding Rich-Text Editing 35
Adding a Search System to the CMS 38
Improving the Search View 43
Improving the Search Function with Keywords 45
Looking Ahead 52
A Django-Powered Weblog 54
Feature Checklist 54
Writing a Django Application 55
Creating the Weblog Application 56
Designing the Models 58
The Entry Model 63
The Weblog Models So Far 73
Writing the First Views 76
Using Django's Generic Views 80
Decoupling the URLs 83
Looking Ahead 86
Expanding the Weblog 87
Writing the Link Model 87
Views for the Link Model 93
Setting Up Views for Categories 94
Using Generic Views (Again) 96
Views for Tags 97
Cleaning Up the URLConf 99
Handling Live Entries 103
Looking Ahead 105
Templates for the Weblog 106
Dealing with Repetitive Elements: The Power of Inheritance 106
Defining the Base Template for the Blog 109
Section Templates 112
Archives of Entries 113
Templates for Other Types of Content 119
Extending the Template System with Custom Tags 120
Looking Ahead 131
Finishing the Weblog 132
Comments and django.contrib.comments 132
Comment Moderation 138
Adding Feeds 147
Looking Ahead 155
A Social Code-Sharing Site 156
Feature Checklist 156
Setting Up the Application 157
Building the Initial Models 157
Testing the Snippets Application 163
Initial Views for Snippets and Languages 164
Looking Ahead 172
Form Processing in the Code- Sharing Application 173
A Brief Tour of Django’s Form System 173
A Form for Adding Code Snippets 183
Automatically Generating a Form for Adding Snippets 188
Simplifying Templates That Display Forms 191
Editing Snippets 192
Looking Ahead 194
Finishing the Code-Sharing Application 195
Bookmarking Snippets 195
Basic Bookmark Views 196
A New Template Tag: {% if_bookmarked %} 200
Using RequestContext to Automatically Populate Template Variables 204
Adding the User Rating System 206
Looking Ahead 212
Writing Reusable Django Applications 213
One Thing at a Time 214
Developing Multiple Applications 216
Building for Flexibility 218
Distributing Django Applications 225
Looking Ahead 232
Index 233
Erscheint lt. Verlag | 31.8.2008 |
---|---|
Zusatzinfo | 256 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Software Entwicklung |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | Blog • CMS • Content Management • content management system • Development • Django • Framework • Open Source • Templates • web applications • Weblog |
ISBN-10 | 1-4302-0868-6 / 1430208686 |
ISBN-13 | 978-1-4302-0868-6 / 9781430208686 |
Haben Sie eine Frage zum Produkt? |
Größe: 1,5 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich