You'll need to have 4 different .env
files for the project.
.env
- located in the base directory of the projectendgrid.env
- located in base directory.env
- located in thesettings/
foldercreds.env
- located in theorganizer/
app
You can simply create these files in their respective locations, copy the format below for each file, and replace it with your own data.
This file stores the credentials for the superuser.
# Environmental variables for credentials
# Head Organizer Credentials
HEAD_ORG_FIRST_NAME='FIRST'
HEAD_ORG_LAST_NAME='LAST'
HEAD_ORG_EMAIL='mailer@mail.com'
HEAD_ORG_PASSWORD='PASSWORD'
HALO uses Sendgrid for mail relay. This file stores the API key for Sendgrid.
export SENDGRID_API_KEY='API_KEY'
Once you have added this in your director be sure to source ./sendgrid.env
in your shell
This file stores credentials and other sensitive information for the project settings. Used for both dev mode and production mode.
# django settings configurations
SECRET_KEY='SECRET'
# Django allowed hosts
ALLOWED_HOSTS='["localhost", "127.0.0.1", "YOURDOMAIN"]'
# email credentials
EM_BACKEND='django.core.mail.backends.smtp.EmailBackend'
EM_OUTGOING='mail@mail.com'
EM_HOST='smtp.sendgrid.net'
EM_PORT=NUM
EM_HOST_USER='KEY'
EM_HOST_PASSWORD='PASS'
EM_USE_TLS=True
# AWS S3 Settings
AWS_ACCESS_KEY_ID='KEY_ID'
AWS_SECRET_ACCESS_KEY='ACCESS_KEY'
AWS_STORAGE_BUCKET_NAME='NAME'
DEFAULT_FILE_STORAGE='storages.backends.s3boto3.S3Boto3Storage'
STATICFILES_STORAGE='storages.backends.s3boto3.S3Boto3Storage'
This file stores the passwords that are used to create organizers or hackers
# Need to add them passwords
# Organizer Passwords
ORGANIZER_PASSWORD='PASS'
# hacker password
HACKER_PASSWORD='PASS'