To add a custom domain to your application, first add your domain to the ALLOWED_HOSTS
list in your settings module. As an example, if you owned example.com
, then ALLOWED_HOSTS
should appear like the following:
ALLOWED_HOSTS = ["3vm-resolute-kelvin.circumeo-apps.net", ".example.com"]
Note the prefixed dot at the beginning of the domain.
The leading dot is necessary so that www.example.com
and example.com
will both resolve correctly.
Before deploying, navigate to your registrar in order to create two DNS A records:
The following is an example from the Squarespace DNS page.
Note that some registrars such as GoDaddy may list a parked or default entry. This entry will interfere with the certificate process, and so will need to be removed.
Click Deploy once your DNS A records are updated.
You should see something similar as the deploy process proceeds.