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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -