Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Django 2 Web Development Cookbook

You're reading from   Django 2 Web Development Cookbook 100 practical recipes on building scalable Python web apps with Django 2

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher
ISBN-13 9781788837682
Length 544 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Aidas Bendoraitis Aidas Bendoraitis
Author Profile Icon Aidas Bendoraitis
Aidas Bendoraitis
Jake Kronika Jake Kronika
Author Profile Icon Jake Kronika
Jake Kronika
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Getting Started with Django 2.1 2. Database Structure and Modeling FREE CHAPTER 3. Forms and Views 4. Templates and JavaScript 5. Customizing Template Filters and Tags 6. Model Administration 7. Security and Performance 8. Django CMS 9. Hierarchical Structures 10. Importing and Exporting Data 11. Bells and Whistles 12. Testing and Deployment 13. Other Books You May Enjoy

What this book covers

Chapter 1, Getting Started with Django 2.1, illustrates the fundamental setup and configuration steps necessary for any Django project. We cover virtual environments and Docker, project settings across environments, and multiple version control systems.

Chapter 2, Database Structure and Modeling, explains how you can write reusable code for use in construction of your models. The first thing to define with new apps are the data models, which form the backbone of any project. Also, you will learn how to manage database schema changes and data manipulations using Django migrations.

Chapter 3, Forms and Views, looks first at common forms and ways to construct their markup effectively, and then the views to present dynamic forms, lists, and details of your data to users.

Chapter 4, Templates and JavaScript, covers practical examples of using templates and JavaScript together. We combine these facets, rendered templates present information to the user, and JavaScript provides crucial enhancements in modern websites for a rich user experience.

Chapter 5, Customizing Template Filters and Tags, reviews how to create and use your own template filters and tags. As you will see, the default Django template system can be extended to meet template developers' needs.

Chapter 6, Model Administration, explores the default Django administration interface, and guides you through extending it with your own functionality.

Chapter 7, Security and Performance, delves into several ways, both inherent to and external from Django, to secure and optimize your projects.

Chapter 8, Django CMS, deals with the best practices of using Django CMS, the most popular open source content management system made with and for Django, and then adapting it to your project's specific requirements.

Chapter 9, Hierarchical Structures, examines tree-like structure creation and manipulation in Django, and the benefits of incorporating the django-mptt or treebeard libraries into such workflows. This chapter shows you how to use both for the display and administration of hierarchies.

Chapter 10, Importing and Exporting Data, demonstrates the transfer of data from and to different formats, as well as its provision between various sources. Within this chapter, custom management commands are used for data import, and we utilize REST APIs for data export.

Chapter 11, Bells and Whistles, shows some additional snippets and tricks that are useful in everyday web development and debugging.

Chapter 12, Testing and Deployment, provides a few examples of how to test your project code, and gives options for automating repetitive tasks and deployment on a remote server.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime