Skip to content

Commit

Permalink
✨(settings) activate mailcatcher and deactivate Celery for developmment
Browse files Browse the repository at this point in the history
Use environment variables to activate mailcatcher and deactivate Celery
in the develoment environment because we don't want these 2 settings
to be defaults. Indeed:
- the default for sending emails in development should be the console
  backend,
- the default for Celery should be activated because we run this image
  in full environments as well.
  • Loading branch information
sampaccoud committed Sep 10, 2018
1 parent ae272d2 commit a114a42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions env.d/development
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@ MYSQL_DATABASE=edxapp
MYSQL_USER=fun
MYSQL_PASSWORD=password

# Email
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=mailcatcher
EMAIL_PORT=1025

# Python
PYTHONUNBUFFERED=1

# Queues
CELERY_ALWAYS_EAGER=1

0 comments on commit a114a42

Please sign in to comment.