| 1 |
DATABASES = { |
| 2 |
'default': { |
| 3 |
'ENGINE': 'django.db.backends.sqlite3', |
| 4 |
'NAME': ':memory:', |
| 5 |
} |
| 6 |
} |
| 7 |
|
| 8 |
|
| 9 |
INSTALLED_APPS = ( |
| 10 |
'djcelery_email', |
| 11 |
'appconf', |
| 12 |
) |
| 13 |
|
| 14 |
SECRET_KEY = 'unique snowflake' |
| 15 |
|
| 16 |
# Django 1.7 throws dire warnings if this is not set. |
| 17 |
# We don't actually use any middleware, given that there are no views. |
| 18 |
MIDDLEWARE_CLASSES = () |
| 19 |
|
| 20 |
CELERY_EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' |
| 21 |
CELERY_EMAIL_TASK_CONFIG = { |
| 22 |
'queue': 'django_email', |
| 23 |
'delivery_mode': 1, # non persistent |
| 24 |
'rate_limit': '50/m', # 50 chunks per minute |
| 25 |
} |