
At a Glance
Format
PDF
eText
$59.99
or 4 interest-free payments of $15.00 with
orInstant online reading in your Booktopia eTextbook Library *
Why choose an eTextbook?
Instant Access *
Purchase and read your book immediately
Read Aloud
Listen and follow along as Bookshelf reads to you
Study Tools
Built-in study tools like highlights and more
* eTextbooks are not downloadable to your eReader or an app and can be accessed via web browsers only. You must be connected to the internet and have no technical issues with your device or browser that could prevent the eTextbook from operating.
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.
on
Desktop
Tablet
Mobile
Cover -- Contents -- About the Author -- About the Technical Reviewer -- Introduction -- CHAPTER 1 Welcome to Django -- What 's a Web Framework and Why Should I Want One? -- Say Hello to Django -- Say Hello to Python -- Installing Django -- Your First Steps with Django -- Exploring Your Django Project -- Looking Ahead -- CHAPTER 2 Your First Django Site: A Simple CMS -- Configuring Your First Django Project -- Putting Together the CMS -- A Quick Introduction to the Django Template System -- Looking Ahead -- CHAPTER 3 Customizing the Simple CMS -- Adding Rich-Text Editing -- Adding a Search System to the CMS -- Improving the Search View -- Improving the Search Function with Keywords -- Looking Ahead -- CHAPTER 4 A Django-Powered Weblog -- Feature Checklist -- Writing a Django Application -- Projects vs. Applications -- Standalone and Coupled Applications -- Creating the Weblog Application -- Designing the Models -- The Entry Model -- Basic Fields -- Slugs, Useful Defaults, and Uniqueness Constraints -- Authors, Comments, and Featured Entries -- Different Types of Entries -- Categorizing and Tagging Entries -- Writing Entries Without Writing HTML -- Finishing Touches -- The Weblog Models So Far -- Writing the First Views -- Using Django's Generic Views -- How Did Django Do That? -- Decoupling the URLs -- Looking Ahead -- CHAPTER 5 Expanding the Weblog -- Writing the Link Model -- Views for the Link Model -- Setting Up Views for Categories -- Using Generic Views (Again) -- Views for Tags -- Cleaning Up the URLConf -- Handling Live Entries -- Looking Ahead -- CHAPTER 6 Templates for the Weblog -- Dealing with Repetitive Elements: The Power of Inheritance -- HowTemplate Inheritance Works -- Limits of Template Inheritance -- Defining the Base Template for the Blog -- Section Templates -- Archives of Entries -- Entry Index -- Yearly Archive -- Monthly and Daily Archives -- Entry Detail -- Templates for Other Types of Content -- Extending the Template System with Custom Tags -- How a Django Template Works -- A Simple Custom Tag -- Writing a More Flexible Tag with Arguments -- Writing the Compilation Function -- Writing the LatestContentNode -- Registering and Using the New Tag -- Looking Ahead -- CHAPTER 7 Finishing the Weblog -- Comments and django.contrib.comments -- Installing the Comments Application -- Basic Setup -- Retrieving Lists of Comments for Display -- Comment Moderation -- Signals and the Django Dispatcher -- Building the Automatic Comment Moderator -- Adding Akismet Support -- E-mail Notification of Comments -- Dealing with Moderated Comments in Public-Facing Templates -- Adding Feeds -- LatestEntriesFeed -- Entries by Category:A More Complex Feed Example -- Looking Ahead -- CHAPTER 8 A Social Code-Sharing Site -- Feature Checklist -- Setting Up the Application -- Building the Initial Models -- The Language Model -- The Snippet Model -- Testing the Snippets Application -- Initial Views for Snippets and Languages -- CSS for pygments Syntax Highlighting -- Views for Languages -- An Advanced View:Top Authors -- Improving the View of Top Authors -- Adding a top_languages View.
ISBN: 9781430208686
ISBN-10: 1430208686
Published: 31st August 2008
Format: PDF
Language: English
Publisher: Springer Nature
























