Load and set environment variables from (dot env) .env file on Linux
xxxxxxxxxx
export $( grep -vE "^(#.*|\s*)$" .env )
xxxxxxxxxx
npm install dotenv --save
Next add the following line to your app: "require('dotenv').config()"
Then create a .env file at the root directory of your application
and add the variables to it.
xxxxxxxxxx
SECRET_KEY=django-insecure-g6owp@47mbu33+nemhf$btj&6e7t&8)&n!uax1obkf-d)9$9*j
DB_NAME=moviereviews
DB_USER=root
DB_PASS=hO5xY%00j
xxxxxxxxxx
DISCORD_TOKEN=MTAwMDQ2MDI1Njc0MjIzMjA4Ng.GMtT2F.clHKSizsx1uKX0NEbw3XeQeUi0OyYQxcTFo1Fg