{"action":"closed","number":84,"pull_request":{"url":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/84","id":53793283,"html_url":"https://github.com/Aclark2089/Bookstore/pull/84","diff_url":"https://github.com/Aclark2089/Bookstore/pull/84.diff","patch_url":"https://github.com/Aclark2089/Bookstore/pull/84.patch","issue_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues/84","number":84,"state":"closed","locked":false,"title":"Set settings to use prod DB if exists","user":{"login":"Aclark2089","id":6467543,"avatar_url":"https://avatars.githubusercontent.com/u/6467543?v=3","gravatar_id":"","url":"https://api.github.com/users/Aclark2089","html_url":"https://github.com/Aclark2089","followers_url":"https://api.github.com/users/Aclark2089/followers","following_url":"https://api.github.com/users/Aclark2089/following{/other_user}","gists_url":"https://api.github.com/users/Aclark2089/gists{/gist_id}","starred_url":"https://api.github.com/users/Aclark2089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aclark2089/subscriptions","organizations_url":"https://api.github.com/users/Aclark2089/orgs","repos_url":"https://api.github.com/users/Aclark2089/repos","events_url":"https://api.github.com/users/Aclark2089/events{/privacy}","received_events_url":"https://api.github.com/users/Aclark2089/received_events","type":"User","site_admin":false},"body":"The settings.py for the app will now automatically use the given production database in the app/prod_database.py\n\nI setup an example file to demo this, and added handled test cases for having the database (in which case prod is used) or not having the database, in which case the database listed in settings.py will be used instead for running the server","created_at":"2015-12-16T02:54:56Z","updated_at":"2015-12-16T02:55:29Z","closed_at":"2015-12-16T02:55:29Z","merged_at":"2015-12-16T02:55:29Z","merge_commit_sha":"d09c687de8a27ad0315c87c6cacc5f2bd7db47a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/84/commits","review_comments_url":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/84/comments","review_comment_url":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues/84/comments","statuses_url":"https://api.github.com/repos/Aclark2089/Bookstore/statuses/a987ca800f6c7ebf44b96333bea24a416e5a1ec3","head":{"label":"Aclark2089:setup_production_db","ref":"setup_production_db","sha":"a987ca800f6c7ebf44b96333bea24a416e5a1ec3","user":{"login":"Aclark2089","id":6467543,"avatar_url":"https://avatars.githubusercontent.com/u/6467543?v=3","gravatar_id":"","url":"https://api.github.com/users/Aclark2089","html_url":"https://github.com/Aclark2089","followers_url":"https://api.github.com/users/Aclark2089/followers","following_url":"https://api.github.com/users/Aclark2089/following{/other_user}","gists_url":"https://api.github.com/users/Aclark2089/gists{/gist_id}","starred_url":"https://api.github.com/users/Aclark2089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aclark2089/subscriptions","organizations_url":"https://api.github.com/users/Aclark2089/orgs","repos_url":"https://api.github.com/users/Aclark2089/repos","events_url":"https://api.github.com/users/Aclark2089/events{/privacy}","received_events_url":"https://api.github.com/users/Aclark2089/received_events","type":"User","site_admin":false},"repo":{"id":45715413,"name":"Bookstore","full_name":"Aclark2089/Bookstore","owner":{"login":"Aclark2089","id":6467543,"avatar_url":"https://avatars.githubusercontent.com/u/6467543?v=3","gravatar_id":"","url":"https://api.github.com/users/Aclark2089","html_url":"https://github.com/Aclark2089","followers_url":"https://api.github.com/users/Aclark2089/followers","following_url":"https://api.github.com/users/Aclark2089/following{/other_user}","gists_url":"https://api.github.com/users/Aclark2089/gists{/gist_id}","starred_url":"https://api.github.com/users/Aclark2089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aclark2089/subscriptions","organizations_url":"https://api.github.com/users/Aclark2089/orgs","repos_url":"https://api.github.com/users/Aclark2089/repos","events_url":"https://api.github.com/users/Aclark2089/events{/privacy}","received_events_url":"https://api.github.com/users/Aclark2089/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aclark2089/Bookstore","description":"CIS4301 Project for class","fork":false,"url":"https://api.github.com/repos/Aclark2089/Bookstore","forks_url":"https://api.github.com/repos/Aclark2089/Bookstore/forks","keys_url":"https://api.github.com/repos/Aclark2089/Bookstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aclark2089/Bookstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aclark2089/Bookstore/teams","hooks_url":"https://api.github.com/repos/Aclark2089/Bookstore/hooks","issue_events_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues/events{/number}","events_url":"https://api.github.com/repos/Aclark2089/Bookstore/events","assignees_url":"https://api.github.com/repos/Aclark2089/Bookstore/assignees{/user}","branches_url":"https://api.github.com/repos/Aclark2089/Bookstore/branches{/branch}","tags_url":"https://api.github.com/repos/Aclark2089/Bookstore/tags","blobs_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aclark2089/Bookstore/statuses/{sha}","languages_url":"https://api.github.com/repos/Aclark2089/Bookstore/languages","stargazers_url":"https://api.github.com/repos/Aclark2089/Bookstore/stargazers","contributors_url":"https://api.github.com/repos/Aclark2089/Bookstore/contributors","subscribers_url":"https://api.github.com/repos/Aclark2089/Bookstore/subscribers","subscription_url":"https://api.github.com/repos/Aclark2089/Bookstore/subscription","commits_url":"https://api.github.com/repos/Aclark2089/Bookstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aclark2089/Bookstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aclark2089/Bookstore/contents/{+path}","compare_url":"https://api.github.com/repos/Aclark2089/Bookstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aclark2089/Bookstore/merges","archive_url":"https://api.github.com/repos/Aclark2089/Bookstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aclark2089/Bookstore/downloads","issues_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues{/number}","pulls_url":"https://api.github.com/repos/Aclark2089/Bookstore/pulls{/number}","milestones_url":"https://api.github.com/repos/Aclark2089/Bookstore/milestones{/number}","notifications_url":"https://api.github.com/repos/Aclark2089/Bookstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aclark2089/Bookstore/labels{/name}","releases_url":"https://api.github.com/repos/Aclark2089/Bookstore/releases{/id}","created_at":"2015-11-07T00:19:55Z","updated_at":"2015-12-06T04:59:23Z","pushed_at":"2015-12-16T02:55:30Z","git_url":"git://github.com/Aclark2089/Bookstore.git","ssh_url":"git@github.com:Aclark2089/Bookstore.git","clone_url":"https://github.com/Aclark2089/Bookstore.git","svn_url":"https://github.com/Aclark2089/Bookstore","homepage":null,"size":13761,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Aclark2089:master","ref":"master","sha":"f9d7acf146888ee9629ac69a32660d3fce5495da","user":{"login":"Aclark2089","id":6467543,"avatar_url":"https://avatars.githubusercontent.com/u/6467543?v=3","gravatar_id":"","url":"https://api.github.com/users/Aclark2089","html_url":"https://github.com/Aclark2089","followers_url":"https://api.github.com/users/Aclark2089/followers","following_url":"https://api.github.com/users/Aclark2089/following{/other_user}","gists_url":"https://api.github.com/users/Aclark2089/gists{/gist_id}","starred_url":"https://api.github.com/users/Aclark2089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aclark2089/subscriptions","organizations_url":"https://api.github.com/users/Aclark2089/orgs","repos_url":"https://api.github.com/users/Aclark2089/repos","events_url":"https://api.github.com/users/Aclark2089/events{/privacy}","received_events_url":"https://api.github.com/users/Aclark2089/received_events","type":"User","site_admin":false},"repo":{"id":45715413,"name":"Bookstore","full_name":"Aclark2089/Bookstore","owner":{"login":"Aclark2089","id":6467543,"avatar_url":"https://avatars.githubusercontent.com/u/6467543?v=3","gravatar_id":"","url":"https://api.github.com/users/Aclark2089","html_url":"https://github.com/Aclark2089","followers_url":"https://api.github.com/users/Aclark2089/followers","following_url":"https://api.github.com/users/Aclark2089/following{/other_user}","gists_url":"https://api.github.com/users/Aclark2089/gists{/gist_id}","starred_url":"https://api.github.com/users/Aclark2089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aclark2089/subscriptions","organizations_url":"https://api.github.com/users/Aclark2089/orgs","repos_url":"https://api.github.com/users/Aclark2089/repos","events_url":"https://api.github.com/users/Aclark2089/events{/privacy}","received_events_url":"https://api.github.com/users/Aclark2089/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aclark2089/Bookstore","description":"CIS4301 Project for class","fork":false,"url":"https://api.github.com/repos/Aclark2089/Bookstore","forks_url":"https://api.github.com/repos/Aclark2089/Bookstore/forks","keys_url":"https://api.github.com/repos/Aclark2089/Bookstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aclark2089/Bookstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aclark2089/Bookstore/teams","hooks_url":"https://api.github.com/repos/Aclark2089/Bookstore/hooks","issue_events_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues/events{/number}","events_url":"https://api.github.com/repos/Aclark2089/Bookstore/events","assignees_url":"https://api.github.com/repos/Aclark2089/Bookstore/assignees{/user}","branches_url":"https://api.github.com/repos/Aclark2089/Bookstore/branches{/branch}","tags_url":"https://api.github.com/repos/Aclark2089/Bookstore/tags","blobs_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aclark2089/Bookstore/statuses/{sha}","languages_url":"https://api.github.com/repos/Aclark2089/Bookstore/languages","stargazers_url":"https://api.github.com/repos/Aclark2089/Bookstore/stargazers","contributors_url":"https://api.github.com/repos/Aclark2089/Bookstore/contributors","subscribers_url":"https://api.github.com/repos/Aclark2089/Bookstore/subscribers","subscription_url":"https://api.github.com/repos/Aclark2089/Bookstore/subscription","commits_url":"https://api.github.com/repos/Aclark2089/Bookstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aclark2089/Bookstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aclark2089/Bookstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aclark2089/Bookstore/contents/{+path}","compare_url":"https://api.github.com/repos/Aclark2089/Bookstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aclark2089/Bookstore/merges","archive_url":"https://api.github.com/repos/Aclark2089/Bookstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aclark2089/Bookstore/downloads","issues_url":"https://api.github.com/repos/Aclark2089/Bookstore/issues{/number}","pulls_url":"https://api.github.com/repos/Aclark2089/Bookstore/pulls{/number}","milestones_url":"https://api.github.com/repos/Aclark2089/Bookstore/milestones{/number}","notifications_url":"https://api.github.com/repos/Aclark2089/Bookstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aclark2089/Bookstore/labels{/name}","releases_url":"https://api.github.com/repos/Aclark2089/Bookstore/releases{/id}","created_at":"2015-11-07T00:19:55Z","updated_at":"2015-12-06T04:59:23Z","pushed_at":"2015-12-16T02:55:30Z","git_url":"git://github.com/Aclark2089/Bookstore.git","ssh_url":"git@github.com:Aclark2089/Bookstore.git","clone_url":"https://github.com/Aclark2089/Bookstore.git","svn_url":"https://github.com/Aclark2089/Bookstore","homepage":null,"size":13761,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/84"},"html":{"href":"https://github.com/Aclark2089/Bookstore/pull/84"},"issue":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/issues/84"},"comments":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/Aclark2089/Bookstore/statuses/a987ca800f6c7ebf44b96333bea24a416e5a1ec3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Aclark2089","id":6467543,"avatar_url":"https://avatars.githubusercontent.com/u/6467543?v=3","gravatar_id":"","url":"https://api.github.com/users/Aclark2089","html_url":"https://github.com/Aclark2089","followers_url":"https://api.github.com/users/Aclark2089/followers","following_url":"https://api.github.com/users/Aclark2089/following{/other_user}","gists_url":"https://api.github.com/users/Aclark2089/gists{/gist_id}","starred_url":"https://api.github.com/users/Aclark2089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aclark2089/subscriptions","organizations_url":"https://api.github.com/users/Aclark2089/orgs","repos_url":"https://api.github.com/users/Aclark2089/repos","events_url":"https://api.github.com/users/Aclark2089/events{/privacy}","received_events_url":"https://api.github.com/users/Aclark2089/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":22,"changed_files":3}}