DEV Community

Hernán Chilabert
Hernán Chilabert

Posted on • Edited on • Originally published at getastra.xyz

Deploy a Django App in 2 Minutes with Astra

This post originally appeared on the Astra blog: getastra.xyz/blog/deploy-django-in-2-minutes

Introduction

Deploying a Django app can be overwhelming, especially if you're not a DevOps expert. Configuring servers, setting up a reverse proxy, managing HTTPS, or provisioning a database can quickly become time-consuming.

With Astra, you can go from code to production with just a few clicks.

In this tutorial, you'll learn how to:

  • Connect your GitHub repo to Astra
  • Deploy your Django app on a cloud server
  • Access it live with HTTPS and logs, no manual setup needed

Prerequisites

Before we start, make sure you have:

  • A Django project in a GitHub repository (public)
  • A free Astra account (you can sign up at getastra.xyz)
  • Basic knowledge of Django (no infra knowledge required)

Step 1: Prepare Your Django App

Astra works best when your project has:

  • A requirements.txt file
  • A .env.sample file (for environment variables)
  • A WSGI or ASGI entry point (wsgi.py or asgi.py)
  • Static files correctly configured (collectstatic)

Step 2: Sign in to Astra and Connect Your GitHub

  • Visit getastra.xyz and log in.
  • Authorize Astra to access your GitHub account.
  • Click “New Project”, select your repository, and choose the branch you want to deploy.

Sign in to Astra and Connect Your GitHub


Step 3: Configure Your Environment Variables

Astra auto-detects your .env.sample file and prompts you to fill in values like:

  • SECRET_KEY
  • DEBUG
  • ...

You can edit them directly in the UI, and they'll be injected into your running app.

Configure Your Environment Variables


Step 4: Deploy and Watch the Magic

Click Deploy, and Astra will:

  • Provision a server (shared or dedicated, depending on your plan)
  • Clone your repo and install dependencies
  • Collect static files and apply migrations
  • Start your app with Gunicorn or Uvicorn (for FastAPI)
  • You'll see real-time logs during setup.

Deploy and Watch the Magic


Step 5: Visit Your Live App

Once the deploy is complete, Astra gives you a live URL like:

https://myproject.getastra.xyz/

The site is already running with:

  • HTTPS enabled (via Let's Encrypt)
  • Static files served correctly
  • A PostgreSQL database (via Neon or Supabase, if configured)

Visit Your Live App


Bonus: Update and Redeploy Anytime

Make changes to your code? Just push to GitHub and hit Redeploy in the dashboard. Astra reuses the infra and deploys only what's changed.


Conclusion

No Docker. No server setup. No DevOps stress.

Deploy your Django app in minutes with Astra.

Ready to deploy your next Django app in minutes?

Try Astra for free → getastra.xyz

Top comments (2)

Collapse
 
__5a23e99ac93c profile image
Артем Риндін

What about pricing?

Collapse
 
herchila profile image
Hernán Chilabert

Thanks for your question! Astra is currently in early access, and we're offering a free Hobby plan that lets you deploy up to 3 apps with some limits on usage (storage, requests, runtime). Paid plans with more resources and features are coming soon, you can join to the early access in getastra.xyz and stay tuned! 🚀