I get this error message from Railway.app:
SECRET_KEY = env("SECRET_KEY")
File "/opt/venv/lib/python3.9/site-packages/environ/environ.py", line 199, in call
return self.get_value(
File "/opt/venv/lib/python3.9/site-packages/environ/environ.py", line 392, in get_value
raise ImproperlyConfigured(error_msg) from exc
django.core.exceptions.ImproperlyConfigured: Set the SECRET_KEY environment variable
I tried submitting the secret key in my .env file with or without quotes but I still get this error. The application works on my home computer.
2 Replies