Django in Production: Expert tips, strategies, and essential frameworks for writing scalable and maintainable code in Django

Django in Production: Expert tips, strategies, and essential frameworks for writing scalable and maintainable code in Django book cover

Django in Production: Expert tips, strategies, and essential frameworks for writing scalable and maintainable code in Django

Author(s): Arghya Saha (Author)

  • Publisher: Packt Publishing
  • Publication Date: 5 April 2024
  • Language: English
  • Print length: 229 pages
  • ISBN-10: 1804610488
  • ISBN-13: 9781804610480

Book Description

Enhance your Django skills and elevate your employability by mastering the tools, and practices employed by seasoned senior developers

Key Features

  • Gain a comprehensive understanding of the available deployment strategies for Django applications
  • Explore techniques and best practices to enhance the efficiency and performance of your Django application
  • Troubleshoot common production issues through efficient error logging and handling techniques

Book Description

You may have got your first Django developer job after a six-week bootcamp or online course, and that’s great, but what next? In small companies, mentorship can be hard to come by and gaining the traits of a senior developer without that can take a longer time. This is precisely where “Django in Production” comes into play.

This book will first delve into the true meaning of “good practice” and help you understand the rationale behind industry professionals building websites in specific ways to develop a solid foundation for your Django projects. Next, you will uncover hidden Django secrets through hands-on exploration, leveraging the power of Docker and version control to your advantage. You will gain insights into mastering Githooks for efficient code maintenance, establishing a robust CI pipeline, and harnessing the capabilities of AWS Beanstalk. These tools will empower you to develop highly scalable products―an essential skillset for aspiring developers transitioning from junior to senior roles. Later, you will understand the significance of monitoring and will be introduced to industry-standard tools utilized by professionals for effective monitoring practices.

By the end of this book, you will have set yourself apart from the crowd, equipped with the knowledge and expertise to thrive as a seasoned Django developer.

What you will learn

  • Write scalable and maintainable code like a Django expert
  • Become proficient in Docker for Django and experience platform-agnostic development
  • Explore intelligent practices for continuous integration
  • Leverage the power of AWS to seamlessly deploy your application in a production environment
  • Optimize unstable systems through effective performance monitoring
  • Effortlessly handle authentication and authorization issues
  • Automate repetitive tasks by creating custom middleware
  • Thoroughly test your code using factory_boy and craft comprehensive API tests

Who This Book Is For

This book is designed for Python and Django developers who aspire to elevate their Django skills to an advanced level. It assumes an intermediate level of proficiency in Python and Django programming and aims to impart comprehensive knowledge on optimizing the production environment and utilizing associated toolsets. By implementing these best practices, you will enhance the efficiency, robustness, and scalability of your production systems, thereby accelerating your career growth and professional development.

Table of Contents

  1. Setting up Django with DRF
  2. Exploring Django ORM, Models, and Migrations
  3. Serializing Data with DRF
  4. Django Admin and Custom Django Management Commands
  5. Authentication and Authorization in Django
  6. Caching, Logging, and Throttling
  7. Using Pagination, Django Signals, and Custom Middleware
  8. Using Celery with Django
  9. Writing tests for Django
  10. Exploring Conventions in Django
  11. All things Git (Version control, github actions and gitops PR review)
  12. AWS Introduction for Django Developers
  13. Beanstalk Concepts, Setup and GIT Integration for Django
  14. Health Checks, Error Monitoring and Integration

Editorial Reviews

About the Author

Arghya (argo) Saha, is a software developer with 7+ years of experience and has been working with Django since 2015. He is proficient in JavaScript, React.js, Node.js, Postgres, AWS, and several other technologies. He has worked with multiple startups like Postman, HealthifyMe, etc to build applications at scale. Argo currently works at Abnormal Security as a Senior SRE to explore his passion in the infrastructure domain. In his spare time, he writes tech blogs and is also an aspiring Endurance Athlete participating in various marathons and Triathlons. He also promotes running via his Not-for-Profit initiative ‘Bhaago India’.

View on Amazon

未经允许不得转载:Wow! eBook » Django in Production: Expert tips, strategies, and essential frameworks for writing scalable and maintainable code in Django