-
Notifications
You must be signed in to change notification settings - Fork 70
Django backend #57
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
Django backend #57
Conversation
Add unit tests
Add html messaging tests
@@ -0,0 +1,6 @@ | |||
class UnSupportedContent(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's make that a lower-case S - UnsupportedContent
There is some uncovered code - let's get that covered: https://coveralls.io/builds/3989636/source?filename=sparkpost%2Fdjango%2Femail_backend.py |
@@ -62,3 +62,4 @@ venv/ | |||
|
|||
# Mac OSX | |||
.DS_Store | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add newline at end of file
Need docs. Would be nice to see this added to both the README and the sphinx docs. Get those in with the code updates and I'll give it another review. |
Improve tests by reducing duplications
e00fed8
to
f7c8a6d
Compare
f7c8a6d
to
e75916a
Compare
2f45196
to
e8e389a
Compare
@richleland Added docs. |
@@ -79,6 +79,17 @@ Here at SparkPost, our messages are known as transmissions. Let's use the underl | |||
|
|||
.. _transmissions API: https://www.sparkpost.com/api#/reference/transmissions | |||
|
|||
Django Integration | |||
------------------ | |||
SparkPost python library comes with an email backend for Django. So, all you need is to use this backend in Django and put the API Key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple copy edits:
- "The" SparkPost python library...
- Delete the second sentence.
Net is this:
The SparkPost python library comes with an email backend for Django. Put the following configuration in your
settings.py
file:
|
||
Supported version | ||
----------------- | ||
SparkPost will support all Django versions of Django that are within extended support period. Refer to `Django Supported_Version`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy edit:
SparkPost will support all versions of Django that are within the extended support period. Refer to...
5573036
to
eb590c5
Compare
This PR implements the minimum version of Django backend. Just a start, still lot of scope of improvements.