When deploying django into production with DEBUG = False, sometimes we may get “blank page” or “500”. Eventhough we already put “500.html” on templates, seems like it’s doesn’t works.
Solution? Check your ALLOWED_HOSTS in your settings.py
1 | ALLOWED_HOSTS = [] |
Make sure it’s not empty 😀