
In Detail
Django is a high-level Python web application framework designed to support the rapid development of dynamic websites, web applications, and web services. Getting the most out of its template system allows programmers and designers to easily and efficiently output their content in a flexible, extendable, and maintainable manner.
This book will help you to master the Django template system. Built-in template tags and filters are explained with examples and usage notes, as well as information on building custom tags and filters to extend the system for your needs. You will learn to use inheritance to create modular templates that are easy to maintain. You will learn how to serve multiple templates from within the same Django project, with an example of how to serve different templates for a mobile version of your site without having to change any code in your views. Pagination, internationalization, caching, and customization of the automatic admin application are also covered.
What you will learn from this book
- Meet the Django template system and understand how it works
- Understand URL configurations, views, and generic views and streamline your project’s development
- Master built-in tags and filters to use them efficiently in your project
- Split your output into manageable pieces using pagination libraries
- Extend your templates through inheritance
- Customize the look of the admin interface as you like to administer your website with ease
- Create and deploy custom tags and filters according to your needs
- Internationalize your templates to present your site in multiple languages from the same template files
- Improve your site’s performance by using the cache framework
- Serve multiple sets of templates from the same project easily
Chapter 1 gives you an introduction to the Django template system and provides an overview of how it works.
Chapter 2 explores how URL configuration routes your requests to views and generic views. You will understand how to use generic views to streamline your project’s development.
Chapter 3 explains how data from your views is exposed to the template system via the template context.
Chapter 4 reviews all of Django’s built-in tags and filters, each with examples and usage notes.
Chapter 5 uses extension and inheritance to create a modular skeleton for your project’s templates.
Chapter 6 teaches you how to serve multiple versions of your templates in a single Django project. You will create mobile and traditional templates and learn how to serve them from the same views.
Chapter 7 teaches you how to use Django’s pagination libraries to split the output of your applications into pages and provide navigation between them.
Chapter 8 explains how to extend the template system by writing your own template tags and filters.
Chapter 9 uses internationalization to automatically serve your site templates in multiple languages based on the user’s preferences.
Chapter 10 shows you how to customize the look and feel of the automatic admin application by editing some templates and creating custom CSS rules.
Chapter 11 teaches you to use the cache framework to optimize the speed and performance of your project.
Approach
This book is designed for readers who learn by doing and employs many examples and screenshots to let the reader dig in and start coding. This book isn’t designed to be a reference; instead it has a practical, example-driven approach that teaches you by following along with the examples in the chapters.
When you have completed this book, you will fully understand how the template system works, how to extend it when you have specialized needs, and how to optimize the performance and usability of your content.
Who this book is written for
This book is for web developers and template authors who want to fully understand and utilize the Django template system. The reader should have completed the introductory tutorials on the Django project’s website and some experience with the framework will be very helpful. Basic knowledge of Python and HTML is assumed.
download

Creating Flash Widgets with Flash CS4 and ActionScript 3.0
Creating Flash Widgets with Flash CS4 and ActionScript 3.0 is an introduction to developing widgets for the Internet using the new features of Flash CS4 and ActionScript 3.0. Many social-networking sites, blogs, and personal home pages have adopted the use of widgets and Flash developers can create and distribute their own widgets for others to use. A step-by-step example demonstrates how to design and develop your own Flash widgets and integrate them with XML. In addition, publishing, promoting, and capitalizing on your Flash widgets is discussed.
What you’ll learn
* Using the new tools in Flash CS4
* Basic differences of ActionScript 3.0
* Designing and developing widgets
* Utilizing XML with widgets
* Publishing widgets to the Internet
* Promoting and capitalizing on widgets
Who is this book for?
Creating Flash Widgets with Flash CS4 and ActionScript 3.0 targets novice to intermediate Flash designers/developers interested in learning how to create and publish widgets for the Internet.
Author Information
John Arana
John Arana is currently an Interactive Developer at TechnoCom Corporation, a provider of solutions to enable wireless location networks. Previously, John was Lead Flash Developer at Hekko Corporation, an educational software provider. He also runs his own business doing freelance Flash work involving web sites, games, rich Internet applications, desktop applications, and widgets.
download

LINQ Quickly
Packt Publishing | 2007-11-24 | ISBN: 1847192548 | 252 pages | PDF | 4 MB
This book gets you started with LINQ and shows how it will make your programming life easier by making use of new features from the .NET Framework 3.0. This book is split into seven chapters, each of which is dedicated to presenting a feature of LINQ and its usage in real-life scenarios. Language Integrated Query (LINQ) is a new feature in Visual Studio 2008 that extends its query capabilities, using C# and Visual Basic. Visual Studio 2008 comes with LINQ provider assemblies that enable the use of LINQ with data sources such as in-memory collections, SQL relational databases, ADO.NET Datasets, XML documents, etc. In Visual Studio 2008, Visual C# and Visual Basic are the languages that implement the LINQ language extensions. LINQ language extensions use the new standard query operators API, which is the query language for any collection that implements IEnumerable.
download
七月 27th, 2009 in
.NET | tags:
LINQ |
No Comments

Description
This fascinating book puts substance behind Web 2.0. Using several high-profile Web 2.0 companies as examples, authors Duane Nickull, Dion Hinchcliffe, and James Governor have distilled the core patterns of Web 2.0 coupled with an abstract model and reference architecture. The result is a base of knowledge that developers, business people, futurists, and entrepreneurs can understand and use as a source of ideas and inspiration.
Web 2.0 is more pervasive than ever, with business analysts and technologists struggling to comprehend the opportunity it represents. So what exactly is Web 2.0 — a marketing term or technical reality? This fascinating book finally puts substance behind the phenomenon by identifying the core patterns of Web 2.0, and by introducing an abstract model and reference architecture to help you take advantage of them.
In Web 2.0 Architectures, authors Duane Nickull, Dion Hinchcliffe, and James Governor — who have 40 years of combined experience with technical specifications and industry trends — examine what makes successful Web 2.0 services such as Google AdSense, Flickr, BitTorrent, MySpace, Facebook, and Wikipedia work. The result is a base of knowledge that developers, business people, futurists, and entrepreneurs can understand and use as a source of ideas and inspiration.
This book reveals:
- A Web 2.0 model: How the classic Client-Server model evolved into a more detailed Web 2.0 model.
- Web 2.0 reference architecture: A generic component view of basic Web 2.0 patterns that can be repurposed for other commercial ventures.
- Specific Web 2.0 patterns: How service oriented architecture (SOA), Software as a Service (SaaS), participation-collaboration, mashups, rich user experience, collaborative tagging systems (Folksonomy), and more can be used in your business.
download

Swing Extreme Testing
Packt Publishing | 2008-05-30 | ISBN: 1847194826 | 328 pages | PDF | 4 MB
Thorough testing is the basis of good software. Whether we use an agile development methodology such as Extreme Programming, or a more traditional approach, we must test our software at the unit level and application level. The tests must run automatically and cover all aspects of the software.
In this book, the authors draw on more than 20 years of experience to show how automated testing can be applied to a real commercial product.
This book will teach you how to automatically test user interfaces (Swing GUIs), the help system, internationalization, log files, spreadsheets, email, and web services, how to perform tests involving multiple JVMs, and a host of other things. These tests are applied at the module level (unit tests) and at the application level (function tests).
The authors have developed the test processes in the broader context of an Extreme Programming (XP) methodology. However, the testing techniques are certainly not specific to XP, and may be applied within any given development methodology.
download
七月 25th, 2009 in
Java | tags:
swing |
No Comments