everyone!
Django 1.11 + PostgreSQL 9.6 + Gunicorn + Ubuntu 16.04 in AWS
I want to set environment variables for sensitive info.(django secret key, DB passwor
create a file called .bashrc in your server
export('the_name_in_bashrc', some_value)
then in the settings.py
settings.py
import os some_variable = os.environ.get('the_name_in_bashrc')