Chapter 11. Testing and Deployment

In this chapter, we will cover the following recipes:

  • Testing pages with Selenium
  • Testing views with mock
  • Testing API created using Django REST framework
  • Releasing a reusable Django app
  • Getting detailed error reporting via e-mail
  • Deploying on Apache with mod_wsgi
  • Setting up cron jobs for regular tasks
  • Creating and using the Fabric deployment script

Introduction

At this point, I expect you to have one or more Django projects or reusable apps developed and ready to show to the public. For the concluding steps of development cycle, we will take a look at how to test your project, distribute reusable apps to others, and publish your website on a remote server. Stay tuned for the final bits and pieces!

Get Web Development with Django Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.