Hello. I followed this documentation, but when I set up secret key, web-app doesn't work and I get this error:
Error running WSGI application
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
In WSGI-file:
import os
import sys
from dotenv import load_dotenv
project_folder = os.path.expanduser('~/deploy_tkontakta')
load_dotenv(os.path.join(project_folder, '.env'))
When I type in web-console "echo $SECRET_KEY" or "echo $DB_KEY", I get correct values. Also I get it, in web-console-python, via "os.getenv('SECRET_KEY')". But web-app doesn't work. Please give me tips.