LPgenerator / django-db-mailer

Django module to easily send emails/sms/tts/push using django templates stored on database and managed through the Django Admin
https://github.com/LPgenerator/django-db-mailer
GNU General Public License v2.0
255 stars 81 forks source link

remove redundant setting #116

Closed ilstreltsov closed 6 years ago

ilstreltsov commented 6 years ago

If I correctly understood the need of use CELERY_TASK_DECORATOR_PATH setting, seems like shared_task decorator is a good and correct replacement for this setting.

not tested

try:
    from celery import shared_task as task
except ImportError:
    try:
        from celery import task
    except ImportError:
        ...
ruscoder commented 6 years ago

@ilstreltsov Hello! Thank you for the advice!