Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store SES sending statistics in model #28

Merged
merged 3 commits into from
Jan 5, 2012

Conversation

selwin
Copy link
Contributor

@selwin selwin commented Jan 5, 2012

Hi, this is an updated version of #26 which I rebased to your master branch.


Additionally, you can install ``pytz`` to localize the Amazon timestamp
(assumed UTC) to your locale. This will also make the date more readable,
using Django's default formatting.

Django Management Command
=========================
If you need to keep sending statistics around for longer than two weeks,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha I'd change this to "keep send statistics", it's easy to misread as "keep sending" (happened to me :D)

@selwin
Copy link
Contributor Author

selwin commented Jan 5, 2012

@pcraciunoiu done :)

@@ -1 +1,3 @@
from backend import SESBackendTest
from test_commands import SESCommandTest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With these here, the tests actually run twice for me. I think I prefer requiring nose and using the default test loader to having these imports here. I'll add docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to just remove the "test_" prefixes so we don't have
to require nose? The imports is only a few lines and for me, the less
outside dependencies the better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's do that then. Would you rename test_stats too?

…run twice by nose.

Minor tweaks to command test.
@selwin
Copy link
Contributor Author

selwin commented Jan 5, 2012

Done! Let me know if there's anything else.

pcraciunoiu pushed a commit that referenced this pull request Jan 5, 2012
Store SES sending statistics in model.
@pcraciunoiu pcraciunoiu merged commit 0b2904d into django-ses:master Jan 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants