© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. GagliardiDecoupled Django https://doi.org/10.1007/978-1-4842-7144-5_7

7. API Security and Deployment

Valentino Gagliardi1  
(1)
Colle di Val D’Elsa, Italy
 
This chapter covers:
  • Django hardening

  • REST API hardening

  • Deployment to production

In the previous chapter, we assembled a pseudo-decoupled Django project with the Django REST Framework and Vue.js.

It’s now time to explore the security implications of such a setup, which are not so dissimilar from running a monolith, but do require some extra steps due to the presence of the REST API. After a focus on security, in the second part of the chapter we cover deployment to production with Gunicorn and NGINX.

Note

Get Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends 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.