There are many people who want to send emails like ‘support@site.com’ or ‘no-reply@website.com’. But there are few sources that explain how to make the necessary settings to do so, especially with Django Framework.
So I made this explanation for a simple reference for devs.

Initialize Google Workspace account

Make an account with Google Workspace here :

https://workspace.google.com/

It will give you 14 days trial for free then you can use ‘Business Starter’ plan for 4,68 € / Month.

Now access to your account using Google Admin Console :

https://admin.google.com/

set your MX Records in your domain provider or your server using this configurations:

https://support.google.com/a/answer/140034


In this tutorial you will learn how to deploy your django (django channels) web app with daphne, postgresql and nginx on VPS

Introduction:

Django is python web framework.
Django Channels augments Django to bring WebSocket, long-poll HTTP, task offloading and other async support to your code
PostgreSQL, also known as Postgres, is a free and open-source relational database management system.
Nginx, is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.
Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels.

We will…

Okba Boularaoui

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store