Articles on: Deploys

How do I deploy my Flask/ Django project?

Looking to deploy your Python project using Zeet? Great, you can easily deploy your Flask/ Django project to your preferred cloud provider in seconds using Zeet.

Here's everything you need to know about deploying your Flask or Django Project.

1. Connecting a Cloud Provider

Zeet helps you deploy your projects to your cloud account in just a few clicks, with production-grade infrastructure, CI/ CD, and scaling. To use Zeet, you first need to connect a cloud account.

2. Creating the Project

Now that your Cloud is linked, let's connect up your Github repo! Click the New button in the top-right of the dashboard to create a new Project. Zeet provides a number of Project Types for different use-cases depending on what is in your Github repo. For a Flask or Django deployment, we recommend either the Serverless Functions Project Type or the Service Container Project Type.

Serverless Functions are a great low-cost option if you're deploying on AWS or GCP. Both AWS and GCP have a generous free-tier, where you get up to 1 Million requests free every month, and is relatively inexpensive afterwards. Serverless Functions do not have access to the local filesystem, and have a 15 minute request timeout.

If Serverless Functions don't fit your needs, you can also deploy a Container Service. Container Services don't have as many runtime restrictions, and require a Kubernetes Cluster (which Zeet can provision for you).

Once you've decided which Project Type you'd like to use, simply select it and you'll be prompted to connect your Git repo.

3. Configure your Deployment

With your Project Type selected, you can now start to configure your actual deployment.

We generally recommend using the "Python" Build Method under the Build and Run settings, unless you already have your own Dockerfile in your repository.
Ensure that you expose the right Port for your application under Networking settings. Flask projects usually run on Port 5000, and Django projects on Port 8080 or 8000

For a more in-depth step-by-step guide on deploying your Flask app using Zeet, check out our docs:

Updated on: 27/02/2024

Was this article helpful?

Share your feedback


Thank you!