Chapter 12: Deploying the Application to the Cloud
Our project is currently running on our local machine. To get our site live on the real, public internet for the world to use, we need to deploy it onto an actual server. A popular way to do so is to deploy our Django project on PythonAnywhere, as it is free to use for small websites. Let's see how to deploy our application to the cloud.
In this chapter, we will be covering the following topics:
- Managing GitHub and Git
- Cloning our code onto PythonAnywhere
- Configuring virtual environments
- Setting up your web app
- Configuring static files
- Changing db.sqlite3 to MySQL or PostgresSQL
Technical requirements
In this chapter, we will be using Python 3.8+. We will be using Git to upload our code to ...
Get Django 4 for the Impatient 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.