python - Apache fail to load django secret key from environment -
i have moved secret key settings.py /etc/environment
/etc/environment
secret_key='tne@n#^^%pp2h3mnwy2=94vuc!d99h=ww69tttf2n#_ypcjk)h'
in project's settings.py
secret_key=os.environ['secret_key']
this error in apache error_log file
keyerror: 'secret_key', referer: http://anime.moxware.com/
how can solve issue?
Comments
Post a Comment