I'm trying to publish my site, i configured all settings (nginx & gunicorn)
This settings works well
DEBUG=True
ALLOWED_HOSTS = ['localhost','127.0.0.1','domain.com','www.domain.com']
However, when i edit the DEBUG=True to False
DEBUG=False
i got this error on browser Bad Request (400)
i also tried these setttings
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['domain.com','www.domain.com']
(before posting this question i checked this answer Django gives Bad Request (400) when DEBUG = False )