[Answer]-Digital Ocean Django app is only working with Debug=True

1👍

You’re setting ALLOWEDHOSTS, which is incorrect.

The proper name is ALLOWED_HOSTS, as seen in the documentation.

👤Celeo

0👍

Try ALLOWED_HOSTS = [‘localhost’] or ALLOWED_HOSTS = [‘localhost’, ‘127.0.0.1’]

👤sunny

0👍

Your allowed host should be your ip, or domain name something like this format

ALLOWED_HOSTS =['.domainname',]
👤Zorig

Leave a comment