diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-10-06 13:51:17 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-10-06 13:51:17 +0800 |
commit | fafce2cfc72f4e1cd14ff6cb693c8ec7854159c5 (patch) | |
tree | 188bcebbf466f803e773c87008eab83e3c26012e /97suifangqa/apps/sfaccount/README.txt | |
parent | 46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d (diff) | |
download | 97dev-fafce2cfc72f4e1cd14ff6cb693c8ec7854159c5.tar.bz2 |
* added settings 'ASYNC_SEND_MAIL'
* added parameter 'async' to 'Account.send_activation_email()' method
* improved views 'sfaccount.views.activate_view'
* adjusted urls 'activate_key'
* added view 'sfaccount.views.activate_done_view'
Diffstat (limited to '97suifangqa/apps/sfaccount/README.txt')
-rw-r--r-- | 97suifangqa/apps/sfaccount/README.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/97suifangqa/apps/sfaccount/README.txt b/97suifangqa/apps/sfaccount/README.txt index c55a405..651122c 100644 --- a/97suifangqa/apps/sfaccount/README.txt +++ b/97suifangqa/apps/sfaccount/README.txt @@ -15,11 +15,17 @@ HOWTO run: 5) ajust 'SF_MAIL' settings in 'mail_settings.py' 6) $ redis-server 7) $ ./manage.py syncdb -8) $ ./manage.py celeryd worker -E +8) $ ./manage.py celery worker --loglevel=info 9) $ ./manage.py celerycam (for monitoring) TEST: a) ./manage.py shell >>> from sfaccount.tasks import send_mail >>> send_mail(to, subject, body_text, body_html) + # async task + >>> r = send_mail.delay(to, subject, body_text, body_html) + >>> r.ready() + >>> r.result + >>> r.successful() + >>> |