{"action":"closed","number":503,"pull_request":{"url":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/503","id":63098183,"html_url":"https://github.com/pydanny/cookiecutter-django/pull/503","diff_url":"https://github.com/pydanny/cookiecutter-django/pull/503.diff","patch_url":"https://github.com/pydanny/cookiecutter-django/pull/503.patch","issue_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/503","number":503,"state":"closed","locked":false,"title":"Add POSTGRES_USER environment variable to django service.","user":{"login":"calculuscowboy","id":11446693,"avatar_url":"https://avatars.githubusercontent.com/u/11446693?v=3","gravatar_id":"","url":"https://api.github.com/users/calculuscowboy","html_url":"https://github.com/calculuscowboy","followers_url":"https://api.github.com/users/calculuscowboy/followers","following_url":"https://api.github.com/users/calculuscowboy/following{/other_user}","gists_url":"https://api.github.com/users/calculuscowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/calculuscowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calculuscowboy/subscriptions","organizations_url":"https://api.github.com/users/calculuscowboy/orgs","repos_url":"https://api.github.com/users/calculuscowboy/repos","events_url":"https://api.github.com/users/calculuscowboy/events{/privacy}","received_events_url":"https://api.github.com/users/calculuscowboy/received_events","type":"User","site_admin":false},"body":"With the development docker configuration (docker-compose -f dev.yml), migrations are run as the default \"postgres\" user.  The postgres backup task is run as the \"repo_name\" user who doesn't have permission to read the tables because they were created and are owned by \"postgres\".  As a result, they are not included in the backup.  Example:\r\n\r\n[before.sql.txt](https://github.com/pydanny/cookiecutter-django/files/176431/before.sql.txt)\r\n\r\nAdding the POSTGRES_USER environment variable to the django service causes the tables to be created and owned by the \"repo_name\" user which results in a more complete backup:\r\n\r\n[after.sql.txt](https://github.com/pydanny/cookiecutter-django/files/176432/after.sql.txt)","created_at":"2016-03-16T16:51:48Z","updated_at":"2016-03-16T19:23:39Z","closed_at":"2016-03-16T19:23:39Z","merged_at":"2016-03-16T19:23:39Z","merge_commit_sha":"4493cb623166d0daaf4dde6cbc6b4f62f79525b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/503/commits","review_comments_url":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/503/comments","review_comment_url":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/503/comments","statuses_url":"https://api.github.com/repos/pydanny/cookiecutter-django/statuses/0a33611c30e3b2dfab7933244ebefe05d858e299","head":{"label":"calculuscowboy:master","ref":"master","sha":"0a33611c30e3b2dfab7933244ebefe05d858e299","user":{"login":"calculuscowboy","id":11446693,"avatar_url":"https://avatars.githubusercontent.com/u/11446693?v=3","gravatar_id":"","url":"https://api.github.com/users/calculuscowboy","html_url":"https://github.com/calculuscowboy","followers_url":"https://api.github.com/users/calculuscowboy/followers","following_url":"https://api.github.com/users/calculuscowboy/following{/other_user}","gists_url":"https://api.github.com/users/calculuscowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/calculuscowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calculuscowboy/subscriptions","organizations_url":"https://api.github.com/users/calculuscowboy/orgs","repos_url":"https://api.github.com/users/calculuscowboy/repos","events_url":"https://api.github.com/users/calculuscowboy/events{/privacy}","received_events_url":"https://api.github.com/users/calculuscowboy/received_events","type":"User","site_admin":false},"repo":{"id":54043562,"name":"cookiecutter-django","full_name":"calculuscowboy/cookiecutter-django","owner":{"login":"calculuscowboy","id":11446693,"avatar_url":"https://avatars.githubusercontent.com/u/11446693?v=3","gravatar_id":"","url":"https://api.github.com/users/calculuscowboy","html_url":"https://github.com/calculuscowboy","followers_url":"https://api.github.com/users/calculuscowboy/followers","following_url":"https://api.github.com/users/calculuscowboy/following{/other_user}","gists_url":"https://api.github.com/users/calculuscowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/calculuscowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calculuscowboy/subscriptions","organizations_url":"https://api.github.com/users/calculuscowboy/orgs","repos_url":"https://api.github.com/users/calculuscowboy/repos","events_url":"https://api.github.com/users/calculuscowboy/events{/privacy}","received_events_url":"https://api.github.com/users/calculuscowboy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/calculuscowboy/cookiecutter-django","description":"A Cookiecutter template for creating production-ready Django projects quickly.","fork":true,"url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django","forks_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/forks","keys_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/teams","hooks_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/hooks","issue_events_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/issues/events{/number}","events_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/events","assignees_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/assignees{/user}","branches_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/branches{/branch}","tags_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/tags","blobs_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/git/refs{/sha}","trees_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/statuses/{sha}","languages_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/languages","stargazers_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/stargazers","contributors_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/contributors","subscribers_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/subscribers","subscription_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/subscription","commits_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/commits{/sha}","git_commits_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/git/commits{/sha}","comments_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/comments{/number}","issue_comment_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/issues/comments{/number}","contents_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/contents/{+path}","compare_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/merges","archive_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/downloads","issues_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/issues{/number}","pulls_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/pulls{/number}","milestones_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/milestones{/number}","notifications_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/labels{/name}","releases_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/releases{/id}","deployments_url":"https://api.github.com/repos/calculuscowboy/cookiecutter-django/deployments","created_at":"2016-03-16T15:25:53Z","updated_at":"2016-03-16T15:25:54Z","pushed_at":"2016-03-16T16:06:48Z","git_url":"git://github.com/calculuscowboy/cookiecutter-django.git","ssh_url":"git@github.com:calculuscowboy/cookiecutter-django.git","clone_url":"https://github.com/calculuscowboy/cookiecutter-django.git","svn_url":"https://github.com/calculuscowboy/cookiecutter-django","homepage":"","size":992,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pydanny:master","ref":"master","sha":"eca82b5aff01ec3bf479ebbe713668a579cc6bdf","user":{"login":"pydanny","id":62857,"avatar_url":"https://avatars.githubusercontent.com/u/62857?v=3","gravatar_id":"","url":"https://api.github.com/users/pydanny","html_url":"https://github.com/pydanny","followers_url":"https://api.github.com/users/pydanny/followers","following_url":"https://api.github.com/users/pydanny/following{/other_user}","gists_url":"https://api.github.com/users/pydanny/gists{/gist_id}","starred_url":"https://api.github.com/users/pydanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydanny/subscriptions","organizations_url":"https://api.github.com/users/pydanny/orgs","repos_url":"https://api.github.com/users/pydanny/repos","events_url":"https://api.github.com/users/pydanny/events{/privacy}","received_events_url":"https://api.github.com/users/pydanny/received_events","type":"User","site_admin":false},"repo":{"id":12115269,"name":"cookiecutter-django","full_name":"pydanny/cookiecutter-django","owner":{"login":"pydanny","id":62857,"avatar_url":"https://avatars.githubusercontent.com/u/62857?v=3","gravatar_id":"","url":"https://api.github.com/users/pydanny","html_url":"https://github.com/pydanny","followers_url":"https://api.github.com/users/pydanny/followers","following_url":"https://api.github.com/users/pydanny/following{/other_user}","gists_url":"https://api.github.com/users/pydanny/gists{/gist_id}","starred_url":"https://api.github.com/users/pydanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydanny/subscriptions","organizations_url":"https://api.github.com/users/pydanny/orgs","repos_url":"https://api.github.com/users/pydanny/repos","events_url":"https://api.github.com/users/pydanny/events{/privacy}","received_events_url":"https://api.github.com/users/pydanny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pydanny/cookiecutter-django","description":"A Cookiecutter template for creating production-ready Django projects quickly.","fork":false,"url":"https://api.github.com/repos/pydanny/cookiecutter-django","forks_url":"https://api.github.com/repos/pydanny/cookiecutter-django/forks","keys_url":"https://api.github.com/repos/pydanny/cookiecutter-django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pydanny/cookiecutter-django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pydanny/cookiecutter-django/teams","hooks_url":"https://api.github.com/repos/pydanny/cookiecutter-django/hooks","issue_events_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/events{/number}","events_url":"https://api.github.com/repos/pydanny/cookiecutter-django/events","assignees_url":"https://api.github.com/repos/pydanny/cookiecutter-django/assignees{/user}","branches_url":"https://api.github.com/repos/pydanny/cookiecutter-django/branches{/branch}","tags_url":"https://api.github.com/repos/pydanny/cookiecutter-django/tags","blobs_url":"https://api.github.com/repos/pydanny/cookiecutter-django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pydanny/cookiecutter-django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pydanny/cookiecutter-django/git/refs{/sha}","trees_url":"https://api.github.com/repos/pydanny/cookiecutter-django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pydanny/cookiecutter-django/statuses/{sha}","languages_url":"https://api.github.com/repos/pydanny/cookiecutter-django/languages","stargazers_url":"https://api.github.com/repos/pydanny/cookiecutter-django/stargazers","contributors_url":"https://api.github.com/repos/pydanny/cookiecutter-django/contributors","subscribers_url":"https://api.github.com/repos/pydanny/cookiecutter-django/subscribers","subscription_url":"https://api.github.com/repos/pydanny/cookiecutter-django/subscription","commits_url":"https://api.github.com/repos/pydanny/cookiecutter-django/commits{/sha}","git_commits_url":"https://api.github.com/repos/pydanny/cookiecutter-django/git/commits{/sha}","comments_url":"https://api.github.com/repos/pydanny/cookiecutter-django/comments{/number}","issue_comment_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/comments{/number}","contents_url":"https://api.github.com/repos/pydanny/cookiecutter-django/contents/{+path}","compare_url":"https://api.github.com/repos/pydanny/cookiecutter-django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pydanny/cookiecutter-django/merges","archive_url":"https://api.github.com/repos/pydanny/cookiecutter-django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pydanny/cookiecutter-django/downloads","issues_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues{/number}","pulls_url":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls{/number}","milestones_url":"https://api.github.com/repos/pydanny/cookiecutter-django/milestones{/number}","notifications_url":"https://api.github.com/repos/pydanny/cookiecutter-django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pydanny/cookiecutter-django/labels{/name}","releases_url":"https://api.github.com/repos/pydanny/cookiecutter-django/releases{/id}","deployments_url":"https://api.github.com/repos/pydanny/cookiecutter-django/deployments","created_at":"2013-08-14T17:43:31Z","updated_at":"2016-03-15T21:19:21Z","pushed_at":"2016-03-16T19:23:39Z","git_url":"git://github.com/pydanny/cookiecutter-django.git","ssh_url":"git@github.com:pydanny/cookiecutter-django.git","clone_url":"https://github.com/pydanny/cookiecutter-django.git","svn_url":"https://github.com/pydanny/cookiecutter-django","homepage":"","size":3611,"stargazers_count":1356,"watchers_count":1356,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":487,"mirror_url":null,"open_issues_count":46,"forks":487,"open_issues":46,"watchers":1356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/503"},"html":{"href":"https://github.com/pydanny/cookiecutter-django/pull/503"},"issue":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/503"},"comments":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/503/comments"},"review_comments":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/503/comments"},"review_comment":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/503/commits"},"statuses":{"href":"https://api.github.com/repos/pydanny/cookiecutter-django/statuses/0a33611c30e3b2dfab7933244ebefe05d858e299"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jayfk","id":2930472,"avatar_url":"https://avatars.githubusercontent.com/u/2930472?v=3","gravatar_id":"","url":"https://api.github.com/users/jayfk","html_url":"https://github.com/jayfk","followers_url":"https://api.github.com/users/jayfk/followers","following_url":"https://api.github.com/users/jayfk/following{/other_user}","gists_url":"https://api.github.com/users/jayfk/gists{/gist_id}","starred_url":"https://api.github.com/users/jayfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayfk/subscriptions","organizations_url":"https://api.github.com/users/jayfk/orgs","repos_url":"https://api.github.com/users/jayfk/repos","events_url":"https://api.github.com/users/jayfk/events{/privacy}","received_events_url":"https://api.github.com/users/jayfk/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}