I am getting 500 errors on every page I try to go with. The only thing that i'm changing is DEBUG to False.
Here is my config:
SECRET_KEY = os.environ.get("SECRET_KEY", "0$ke!x1bz5cj0mpzo1zfx4omw-c9iqw%m95zb)(2@ddg5s+3!f")
ALLOWED_HOSTS = ['*']
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
# Application definition
INSTALLED_APPS = [
'posts', # Contains all dynamic and static pages related to posts
'courses', # Contains all dynamic and static pages related to courses and modules
'pages', # Contains all static pages that are not post related
'markdownx', # Allows for editing and creating markdown content
'jet.dashboard',
'jet', # Django admin theme override
'pwa', # Sets app to be PWA compliant
'whitenoise.runserver_nostatic', # Serving static files
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
Literally every answer i've seen says just set your ALLOWED_HOSTS to ['*'], as you can see i've done that and still no dice. I checked the Docs and they are pretty sparse on what else DEBUG mode effects there is a section of the docs that says:
As a security measure, Django will not include settings that might be sensitive, such as SECRET_KEY. Specifically, it will exclude any setting whose name includes any of the following: 'API' 'KEY' 'PASS' 'SECRET' 'SIGNATURE' 'TOKEN'
https://docs.djangoproject.com/en/2.2/ref/settings/#debug
The only thing I can think of is that the secret_key is not being picked up, but if so how do you do this in production?
EDIT: Some people have been asking me to turn debug mode to true to get the traceback. The problem is, when I set it to true I don't get the 500 error, it's only when DEBUG = False.