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 3 Web Development Cookbook

You're reading from   Django 3 Web Development Cookbook Actionable solutions to common problems in Python web development

Arrow left icon
Product type Paperback
Published in Mar 2020
Publisher Packt
ISBN-13 9781838987428
Length 608 pages
Edition 4th Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jake Kronika Jake Kronika
Author Profile Icon Jake Kronika
Jake Kronika
Aidas Bendoraitis Aidas Bendoraitis
Author Profile Icon Aidas Bendoraitis
Aidas Bendoraitis
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

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

What this book covers

Chapter 1, Getting Started with Django 3.0, illustrates the fundamental setup and configuration steps necessary for any Django project. We cover virtual environments, Docker, and project settings across environments and databases.

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

Chapter 3, Forms and Views, shows ways to construct views and forms for data display and editing. You will learn how to use microformats and other protocols to make your pages more readable by machines for representations in search results and social networks. You will also learn how to generate PDF documents and implement multilingual search.

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

Chapter 5, Custom 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, 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 9, Importing and Exporting Data, demonstrates the transfer of data to and from different formats, as well as its provision between various sources. Within this chapter, custom management commands are used for data imports, and we utilize sitemaps, RSS, and REST APIs for data exports.

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

Chapter 11, Testing, introduces different types of testing and provides a few characteristic examples of how to test your project code.

Chapter 12, Deployment, deals with third-party app deployment to the Python Package Index and Django project deployment to a dedicated server.

Chapter 13, Maintenance, explains how to create database backups, set cron jobs for regular tasks, and log events for further inspection.

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 $19.99/month. Cancel anytime