Web app for asynchronous roching
- Set up DigitalOcean server
- Create user
- Set up ssh keys
- Install Python + PIP
- If it doesn't exist already:
pyvenv roche_env
source roche_env/bin/active
- (
deactivate
to escape)
- Note: install these while in the venv!
- python-decouple
- django-sendgrid-v5
- django-twilio
- phonenumbers (dependency for django-twilio that doesn't automatically come with it)
- Make sure to add
0.0.0.0
and your domain toALLOWED_HOSTS
insettings.py
- `python manage.py runserver 0:8000
- Set time zone in
roche/settings.py
- Create admin (
python manage.py createsuperuser
) - Add environment variables to .env in root directory
- Edit settings.py to change or add environment variables: LOGIN_REDIRECT_URL, EMAIL_BACKEND, SENDGRID_API_KEY, DEFAULT_FROM_EMAIL
- Add to
INSTALLED_APPS
in thesettings.py
file for the project (not any one of the apps) - Add
appname.apps.AppnameConfig
(substitute in the real app's name for appname/Appname) - Add
django_twilio
- Need to
pip install
two other packages:phonenumbers
andwheel
- Add
export TWILIO_ACCOUNT_SID=xxx
andexport TWILIO_AUTH_TOKEN=yyy
to/bin/activate.sh
of the virtual environment (while in the virtual environment)