Add a Custom Domain Name | Django Deployment Series #2

Code With Clinton
187 views •

In this video, we add a custom domain name to a Django REST API deployed on a Linux VPS. You’ll learn: - What a domain name actually is (in simple terms) - How DNS works and how to point a domain to a DigitalOcean droplet - How to configure Nginx to respond to a domain instead of an IP address - Why adding a domain is required before enabling HTTPS This is Episode #2 of the Django Deployment Series. ➡️ Episode #1: Deploy Django REST API on a Linux VPS (Nginx, Gunicorn & PostgreSQL) ➡️ Episode #3: Adding HTTPS (SSL) with Let’s Encrypt 🧑‍💻 Source Code: https://github.com/CodeWithClinton/deploy-practice-ii Timestamps: 00:00:00 – Getting a custom domain name 00:01:51 – Configuring DNS records on Namecheap 00:04:59 – Updating the Nginx server configuration 00:08:37 – Adding the domain to Django ALLOWED_HOSTS 00:09:47 – Restarting Nginx and Gunicorn 00:11:11 – Testing the domain setup 00:12:00 – Final notes 00:14:10 – End

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close