DEV Community

Reishi Mitani
Reishi Mitani

Posted on

What to Do in Django After You Link a Route 53 Record to Elastic Beanstalk

This is a continued post from here

In your django production settings, you will need to add the record to ALLOWED_HOSTS. Otherwise, your website when accessed will return a 400 bad request error.

ALLOWED_HOSTS = [
    'YOUR_PREVIOUS_LINK',
    'LINK_RECENTLY_ADDED',
]
Enter fullscreen mode Exit fullscreen mode

I kept forgetting this, so I thought I might as well leave a memo.

References

Mapping third party domain to aws elastic beanstalk

Top comments (0)