{"action":"opened","number":3174,"pull_request":{"url":"https://api.github.com/repos/torchbox/wagtail/pulls/3174","id":95165167,"html_url":"https://github.com/torchbox/wagtail/pull/3174","diff_url":"https://github.com/torchbox/wagtail/pull/3174.diff","patch_url":"https://github.com/torchbox/wagtail/pull/3174.patch","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/3174","number":3174,"state":"open","locked":false,"title":"Fix errors by settings context processor in out-of-request templates","user":{"login":"vdboor","id":200303,"avatar_url":"https://avatars.githubusercontent.com/u/200303?v=3","gravatar_id":"","url":"https://api.github.com/users/vdboor","html_url":"https://github.com/vdboor","followers_url":"https://api.github.com/users/vdboor/followers","following_url":"https://api.github.com/users/vdboor/following{/other_user}","gists_url":"https://api.github.com/users/vdboor/gists{/gist_id}","starred_url":"https://api.github.com/users/vdboor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdboor/subscriptions","organizations_url":"https://api.github.com/users/vdboor/orgs","repos_url":"https://api.github.com/users/vdboor/repos","events_url":"https://api.github.com/users/vdboor/events{/privacy}","received_events_url":"https://api.github.com/users/vdboor/received_events","type":"User","site_admin":false},"body":"When templates are rendered outside the request cycle, the `settings` context processor fails because `request.site` is not created because `SiteMiddleware` was not processed.\r\n\r\nThis happens whenever requests are mocked for rendering. For example email rendering by third party packages, middleware that runs early or unittests that mock a request object without taking all middleware into account.","created_at":"2016-11-24T11:53:38Z","updated_at":"2016-11-24T11:53:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/torchbox/wagtail/pulls/3174/commits","review_comments_url":"https://api.github.com/repos/torchbox/wagtail/pulls/3174/comments","review_comment_url":"https://api.github.com/repos/torchbox/wagtail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/3174/comments","statuses_url":"https://api.github.com/repos/torchbox/wagtail/statuses/1b078c252e5323e0de0dd906687ea76cf45b9da7","head":{"label":"vdboor:master","ref":"master","sha":"1b078c252e5323e0de0dd906687ea76cf45b9da7","user":{"login":"vdboor","id":200303,"avatar_url":"https://avatars.githubusercontent.com/u/200303?v=3","gravatar_id":"","url":"https://api.github.com/users/vdboor","html_url":"https://github.com/vdboor","followers_url":"https://api.github.com/users/vdboor/followers","following_url":"https://api.github.com/users/vdboor/following{/other_user}","gists_url":"https://api.github.com/users/vdboor/gists{/gist_id}","starred_url":"https://api.github.com/users/vdboor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdboor/subscriptions","organizations_url":"https://api.github.com/users/vdboor/orgs","repos_url":"https://api.github.com/users/vdboor/repos","events_url":"https://api.github.com/users/vdboor/events{/privacy}","received_events_url":"https://api.github.com/users/vdboor/received_events","type":"User","site_admin":false},"repo":{"id":74667792,"name":"wagtail","full_name":"vdboor/wagtail","owner":{"login":"vdboor","id":200303,"avatar_url":"https://avatars.githubusercontent.com/u/200303?v=3","gravatar_id":"","url":"https://api.github.com/users/vdboor","html_url":"https://github.com/vdboor","followers_url":"https://api.github.com/users/vdboor/followers","following_url":"https://api.github.com/users/vdboor/following{/other_user}","gists_url":"https://api.github.com/users/vdboor/gists{/gist_id}","starred_url":"https://api.github.com/users/vdboor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdboor/subscriptions","organizations_url":"https://api.github.com/users/vdboor/orgs","repos_url":"https://api.github.com/users/vdboor/repos","events_url":"https://api.github.com/users/vdboor/events{/privacy}","received_events_url":"https://api.github.com/users/vdboor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vdboor/wagtail","description":"A Django content management system focused on flexibility and user experience","fork":true,"url":"https://api.github.com/repos/vdboor/wagtail","forks_url":"https://api.github.com/repos/vdboor/wagtail/forks","keys_url":"https://api.github.com/repos/vdboor/wagtail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vdboor/wagtail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vdboor/wagtail/teams","hooks_url":"https://api.github.com/repos/vdboor/wagtail/hooks","issue_events_url":"https://api.github.com/repos/vdboor/wagtail/issues/events{/number}","events_url":"https://api.github.com/repos/vdboor/wagtail/events","assignees_url":"https://api.github.com/repos/vdboor/wagtail/assignees{/user}","branches_url":"https://api.github.com/repos/vdboor/wagtail/branches{/branch}","tags_url":"https://api.github.com/repos/vdboor/wagtail/tags","blobs_url":"https://api.github.com/repos/vdboor/wagtail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vdboor/wagtail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vdboor/wagtail/git/refs{/sha}","trees_url":"https://api.github.com/repos/vdboor/wagtail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vdboor/wagtail/statuses/{sha}","languages_url":"https://api.github.com/repos/vdboor/wagtail/languages","stargazers_url":"https://api.github.com/repos/vdboor/wagtail/stargazers","contributors_url":"https://api.github.com/repos/vdboor/wagtail/contributors","subscribers_url":"https://api.github.com/repos/vdboor/wagtail/subscribers","subscription_url":"https://api.github.com/repos/vdboor/wagtail/subscription","commits_url":"https://api.github.com/repos/vdboor/wagtail/commits{/sha}","git_commits_url":"https://api.github.com/repos/vdboor/wagtail/git/commits{/sha}","comments_url":"https://api.github.com/repos/vdboor/wagtail/comments{/number}","issue_comment_url":"https://api.github.com/repos/vdboor/wagtail/issues/comments{/number}","contents_url":"https://api.github.com/repos/vdboor/wagtail/contents/{+path}","compare_url":"https://api.github.com/repos/vdboor/wagtail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vdboor/wagtail/merges","archive_url":"https://api.github.com/repos/vdboor/wagtail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vdboor/wagtail/downloads","issues_url":"https://api.github.com/repos/vdboor/wagtail/issues{/number}","pulls_url":"https://api.github.com/repos/vdboor/wagtail/pulls{/number}","milestones_url":"https://api.github.com/repos/vdboor/wagtail/milestones{/number}","notifications_url":"https://api.github.com/repos/vdboor/wagtail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vdboor/wagtail/labels{/name}","releases_url":"https://api.github.com/repos/vdboor/wagtail/releases{/id}","deployments_url":"https://api.github.com/repos/vdboor/wagtail/deployments","created_at":"2016-11-24T11:39:55Z","updated_at":"2016-11-24T11:39:59Z","pushed_at":"2016-11-24T11:52:39Z","git_url":"git://github.com/vdboor/wagtail.git","ssh_url":"git@github.com:vdboor/wagtail.git","clone_url":"https://github.com/vdboor/wagtail.git","svn_url":"https://github.com/vdboor/wagtail","homepage":"wagtail.io","size":54211,"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":"torchbox:master","ref":"master","sha":"23eced1fcda1a52c2ee05ead43e5135bc8ff9d60","user":{"login":"torchbox","id":84015,"avatar_url":"https://avatars.githubusercontent.com/u/84015?v=3","gravatar_id":"","url":"https://api.github.com/users/torchbox","html_url":"https://github.com/torchbox","followers_url":"https://api.github.com/users/torchbox/followers","following_url":"https://api.github.com/users/torchbox/following{/other_user}","gists_url":"https://api.github.com/users/torchbox/gists{/gist_id}","starred_url":"https://api.github.com/users/torchbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torchbox/subscriptions","organizations_url":"https://api.github.com/users/torchbox/orgs","repos_url":"https://api.github.com/users/torchbox/repos","events_url":"https://api.github.com/users/torchbox/events{/privacy}","received_events_url":"https://api.github.com/users/torchbox/received_events","type":"Organization","site_admin":false},"repo":{"id":16479108,"name":"wagtail","full_name":"torchbox/wagtail","owner":{"login":"torchbox","id":84015,"avatar_url":"https://avatars.githubusercontent.com/u/84015?v=3","gravatar_id":"","url":"https://api.github.com/users/torchbox","html_url":"https://github.com/torchbox","followers_url":"https://api.github.com/users/torchbox/followers","following_url":"https://api.github.com/users/torchbox/following{/other_user}","gists_url":"https://api.github.com/users/torchbox/gists{/gist_id}","starred_url":"https://api.github.com/users/torchbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torchbox/subscriptions","organizations_url":"https://api.github.com/users/torchbox/orgs","repos_url":"https://api.github.com/users/torchbox/repos","events_url":"https://api.github.com/users/torchbox/events{/privacy}","received_events_url":"https://api.github.com/users/torchbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/torchbox/wagtail","description":"A Django content management system focused on flexibility and user experience","fork":false,"url":"https://api.github.com/repos/torchbox/wagtail","forks_url":"https://api.github.com/repos/torchbox/wagtail/forks","keys_url":"https://api.github.com/repos/torchbox/wagtail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/torchbox/wagtail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/torchbox/wagtail/teams","hooks_url":"https://api.github.com/repos/torchbox/wagtail/hooks","issue_events_url":"https://api.github.com/repos/torchbox/wagtail/issues/events{/number}","events_url":"https://api.github.com/repos/torchbox/wagtail/events","assignees_url":"https://api.github.com/repos/torchbox/wagtail/assignees{/user}","branches_url":"https://api.github.com/repos/torchbox/wagtail/branches{/branch}","tags_url":"https://api.github.com/repos/torchbox/wagtail/tags","blobs_url":"https://api.github.com/repos/torchbox/wagtail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/torchbox/wagtail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/torchbox/wagtail/git/refs{/sha}","trees_url":"https://api.github.com/repos/torchbox/wagtail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/torchbox/wagtail/statuses/{sha}","languages_url":"https://api.github.com/repos/torchbox/wagtail/languages","stargazers_url":"https://api.github.com/repos/torchbox/wagtail/stargazers","contributors_url":"https://api.github.com/repos/torchbox/wagtail/contributors","subscribers_url":"https://api.github.com/repos/torchbox/wagtail/subscribers","subscription_url":"https://api.github.com/repos/torchbox/wagtail/subscription","commits_url":"https://api.github.com/repos/torchbox/wagtail/commits{/sha}","git_commits_url":"https://api.github.com/repos/torchbox/wagtail/git/commits{/sha}","comments_url":"https://api.github.com/repos/torchbox/wagtail/comments{/number}","issue_comment_url":"https://api.github.com/repos/torchbox/wagtail/issues/comments{/number}","contents_url":"https://api.github.com/repos/torchbox/wagtail/contents/{+path}","compare_url":"https://api.github.com/repos/torchbox/wagtail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/torchbox/wagtail/merges","archive_url":"https://api.github.com/repos/torchbox/wagtail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/torchbox/wagtail/downloads","issues_url":"https://api.github.com/repos/torchbox/wagtail/issues{/number}","pulls_url":"https://api.github.com/repos/torchbox/wagtail/pulls{/number}","milestones_url":"https://api.github.com/repos/torchbox/wagtail/milestones{/number}","notifications_url":"https://api.github.com/repos/torchbox/wagtail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/torchbox/wagtail/labels{/name}","releases_url":"https://api.github.com/repos/torchbox/wagtail/releases{/id}","deployments_url":"https://api.github.com/repos/torchbox/wagtail/deployments","created_at":"2014-02-03T12:41:59Z","updated_at":"2016-11-24T11:48:45Z","pushed_at":"2016-11-23T16:51:25Z","git_url":"git://github.com/torchbox/wagtail.git","ssh_url":"git@github.com:torchbox/wagtail.git","clone_url":"https://github.com/torchbox/wagtail.git","svn_url":"https://github.com/torchbox/wagtail","homepage":"wagtail.io","size":54211,"stargazers_count":3841,"watchers_count":3841,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":780,"mirror_url":null,"open_issues_count":510,"forks":780,"open_issues":510,"watchers":3841,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/torchbox/wagtail/pulls/3174"},"html":{"href":"https://github.com/torchbox/wagtail/pull/3174"},"issue":{"href":"https://api.github.com/repos/torchbox/wagtail/issues/3174"},"comments":{"href":"https://api.github.com/repos/torchbox/wagtail/issues/3174/comments"},"review_comments":{"href":"https://api.github.com/repos/torchbox/wagtail/pulls/3174/comments"},"review_comment":{"href":"https://api.github.com/repos/torchbox/wagtail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/torchbox/wagtail/pulls/3174/commits"},"statuses":{"href":"https://api.github.com/repos/torchbox/wagtail/statuses/1b078c252e5323e0de0dd906687ea76cf45b9da7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"vdboor"}}