- Copy example env file
cp .env.example .env- Generate a secret key and set the value of
SECRET_KEYto this value
openssl rand -hex 32- Make a virtual environment. Install the dependencies
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt- Source the .env file
export $(grep -v '^#' .env | xargs)