Create unbelievably fast, robust and secure web apps with Django web framework and Python 3.6
Key Features
- Discover solutions to a variety of web application scenarios by leveraging the power of the Django framework
- Understand URL routing, models, forms, templates, and RESTful services with Django 2.14
- Test, deploy, and scale your web applications efficiently with Amazon Web Services (AWS)
Book Description
Django is a framework designed to balance rapid web development with high performance. It handles high levels of user traffic and interaction, integrates with a variety of databases, and collects and processes data in real time. This book follows a task-based approach to guide you through developing using the Django 2.1 framework.
You'll get started by setting up and configuring Docker containers and a virtual environment for your project. Next, you'll learn how to write reusable pieces of code for your models and manage database changes. You'll then work with forms and views to enter and list data, and even apply practical examples using both templates and JavaScript for the optimum user experience. This Django cookbook will also help you adjust the built-in Django administration to fit your needs and boost security and performance to make your web applications as robust, scalable, and dependable as possible. A dedicated section will later guide you on how to use Django CMS, the popular content management suite. Finally, you'll get up to speed with programming and debugging tricks. The book's systematic approach will also help you easily collect data from different sources and provide it to others in various formats.
By the end of this book, you'll have the skills you need to test and deploy projects to a remote dedicated server and scale your application to meet user demand.
What you will learn
- Learn how to set up the basic configuration necessary to start any Django project
- Build a database structure out of reusable model mixins
- Secure web applications against malicious usage and address common performance bottlenecks
- Integrate and extend the Django CMS
- Construct and manage complex and deep hierarchies
- Import data from local sources and external web services and export it to third parties
Who this book is for
This book is for Python developers working on fast and secure web apps that can scale over time. You'll also find this book useful if you want to upgrade to the latest Django framework. Knowledge of Python 3 along with a basic understanding of the Django framework will be beneficial.
Table of Contents
- Getting Started with Django 2.1
- Database Structure and Modeling
- Forms and Views
- Templates and JavaScript
- Custom Template Filters and Tags
- Model Administration
- Security and Performance
- Django CMS
- Hierarchical Structures
- Importing and Exporting Data
- Bells and Whistles
- Testing and Deployment
Jake Kronika, a senior software engineer with nearly 25 years' experience, has been working with Python since 2005, and Django since 2007. Evolving alongside the web development space, his skillset encompasses HTML5, CSS3, and ECMAScript 6 on the frontend, plus Python, Django, Ruby on Rails, Node.js, and much more besides on the server side.
Currently a senior software engineer and development team lead, he collaborates with skilled designers, business stakeholders, and developers around the world to architect robust web applications. In his spare time, he also provides full-spectrum web services as sole proprietor of Gridline Design and Development.
Prior to this book, he has acted as a technical reviewer for several other Packt titles.
Aidas Bendoraitis has been professionally working with web technologies for over a decade. Over the last 10 years at a Berlin-based company, studio 38 pure communication GmbH, together with a creative team, he has developed a number of small and large-scale Django projects, mostly in the cultural area. At the moment he is also working as software architect at a London-based mobile startup, Hype.
Aidas regularly attends the meetups of the Django User Group in Berlin, occasionally visits Django and Python conferences, and writes a blog about Django.