Skip to content

Create db.py#9

Open
sunpriya wants to merge 1 commit intocsspec:masterfrom
sunpriya:patch-4
Open

Create db.py#9
sunpriya wants to merge 1 commit intocsspec:masterfrom
sunpriya:patch-4

Conversation

@sunpriya
Copy link

@sunpriya sunpriya commented Nov 5, 2016

No description provided.

Copy link
Contributor

@akshayarora2009 akshayarora2009 left a comment

Choose a reason for hiding this comment

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

The point of a db_helper file is to handle all exchanges with the database and nothing else.

In the case of communication service, we shall be storing the emails we will be sending.

return requests.post(
"https://api.mailgun.net/v3/samples.mailgun.org/messages",
auth=("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"),
data={"from": "Excited User <excited@samples.mailgun.org>",
Copy link
Contributor

Choose a reason for hiding this comment

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

This data object should actually come from the body of a POST.

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