Skip to content

Conversation

rajumsys
Copy link
Contributor

This PR implements the minimum version of Django backend. Just a start, still lot of scope of improvements.

@@ -0,0 +1,6 @@
class UnSupportedContent(Exception):
Copy link
Contributor

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

@richleland
Copy link
Contributor

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
Copy link
Contributor

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

@richleland
Copy link
Contributor

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.

@rajumsys rajumsys force-pushed the django-backend branch 4 times, most recently from e00fed8 to f7c8a6d Compare November 4, 2015 22:24
@rajumsys
Copy link
Contributor Author

rajumsys commented Nov 5, 2015

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.

@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.
Copy link
Contributor

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`_.
Copy link
Contributor

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...

richleland added a commit that referenced this pull request Nov 5, 2015
@richleland richleland merged commit 9cdfbf2 into SparkPost:master Nov 5, 2015
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