{"action":"opened","number":69,"pull_request":{"url":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/69","id":41592829,"html_url":"https://github.com/kobotoolbox/kobocat/pull/69","diff_url":"https://github.com/kobotoolbox/kobocat/pull/69.diff","patch_url":"https://github.com/kobotoolbox/kobocat/pull/69.patch","issue_url":"https://api.github.com/repos/kobotoolbox/kobocat/issues/69","number":69,"state":"open","locked":false,"title":"Serve static and media files with Django's static files views ONLY in debug mode","user":{"login":"hossein","id":8146290,"avatar_url":"https://avatars.githubusercontent.com/u/8146290?v=3","gravatar_id":"","url":"https://api.github.com/users/hossein","html_url":"https://github.com/hossein","followers_url":"https://api.github.com/users/hossein/followers","following_url":"https://api.github.com/users/hossein/following{/other_user}","gists_url":"https://api.github.com/users/hossein/gists{/gist_id}","starred_url":"https://api.github.com/users/hossein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hossein/subscriptions","organizations_url":"https://api.github.com/users/hossein/orgs","repos_url":"https://api.github.com/users/hossein/repos","events_url":"https://api.github.com/users/hossein/events{/privacy}","received_events_url":"https://api.github.com/users/hossein/received_events","type":"User","site_admin":false},"body":"I *think* this fixes an error in DEBUG=False mode that reads like \"ImproperlyConfigured: The staticfiles view can only be used in debug mode or if the --insecure option of 'runserver' is used.\"\r\n\r\nEven if this is not fixing that, this is adhering to docs which have the user use these views only in DEBUG=True mode:\r\nhttps://docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/#static-file-development-view\r\n(relevant part is `if settings.DEBUG:` in the example code.)","created_at":"2015-08-04T17:02:03Z","updated_at":"2015-08-04T17:02:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/69/commits","review_comments_url":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/69/comments","review_comment_url":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kobotoolbox/kobocat/issues/69/comments","statuses_url":"https://api.github.com/repos/kobotoolbox/kobocat/statuses/a2efab1db30c06fb2290e0be908fba9f2b602d4e","head":{"label":"hossein:production_static_fix","ref":"production_static_fix","sha":"a2efab1db30c06fb2290e0be908fba9f2b602d4e","user":{"login":"hossein","id":8146290,"avatar_url":"https://avatars.githubusercontent.com/u/8146290?v=3","gravatar_id":"","url":"https://api.github.com/users/hossein","html_url":"https://github.com/hossein","followers_url":"https://api.github.com/users/hossein/followers","following_url":"https://api.github.com/users/hossein/following{/other_user}","gists_url":"https://api.github.com/users/hossein/gists{/gist_id}","starred_url":"https://api.github.com/users/hossein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hossein/subscriptions","organizations_url":"https://api.github.com/users/hossein/orgs","repos_url":"https://api.github.com/users/hossein/repos","events_url":"https://api.github.com/users/hossein/events{/privacy}","received_events_url":"https://api.github.com/users/hossein/received_events","type":"User","site_admin":false},"repo":{"id":37579739,"name":"kobocat","full_name":"hossein/kobocat","owner":{"login":"hossein","id":8146290,"avatar_url":"https://avatars.githubusercontent.com/u/8146290?v=3","gravatar_id":"","url":"https://api.github.com/users/hossein","html_url":"https://github.com/hossein","followers_url":"https://api.github.com/users/hossein/followers","following_url":"https://api.github.com/users/hossein/following{/other_user}","gists_url":"https://api.github.com/users/hossein/gists{/gist_id}","starred_url":"https://api.github.com/users/hossein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hossein/subscriptions","organizations_url":"https://api.github.com/users/hossein/orgs","repos_url":"https://api.github.com/users/hossein/repos","events_url":"https://api.github.com/users/hossein/events{/privacy}","received_events_url":"https://api.github.com/users/hossein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hossein/kobocat","description":"Data collection for humanitarian emergencies","fork":true,"url":"https://api.github.com/repos/hossein/kobocat","forks_url":"https://api.github.com/repos/hossein/kobocat/forks","keys_url":"https://api.github.com/repos/hossein/kobocat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hossein/kobocat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hossein/kobocat/teams","hooks_url":"https://api.github.com/repos/hossein/kobocat/hooks","issue_events_url":"https://api.github.com/repos/hossein/kobocat/issues/events{/number}","events_url":"https://api.github.com/repos/hossein/kobocat/events","assignees_url":"https://api.github.com/repos/hossein/kobocat/assignees{/user}","branches_url":"https://api.github.com/repos/hossein/kobocat/branches{/branch}","tags_url":"https://api.github.com/repos/hossein/kobocat/tags","blobs_url":"https://api.github.com/repos/hossein/kobocat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hossein/kobocat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hossein/kobocat/git/refs{/sha}","trees_url":"https://api.github.com/repos/hossein/kobocat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hossein/kobocat/statuses/{sha}","languages_url":"https://api.github.com/repos/hossein/kobocat/languages","stargazers_url":"https://api.github.com/repos/hossein/kobocat/stargazers","contributors_url":"https://api.github.com/repos/hossein/kobocat/contributors","subscribers_url":"https://api.github.com/repos/hossein/kobocat/subscribers","subscription_url":"https://api.github.com/repos/hossein/kobocat/subscription","commits_url":"https://api.github.com/repos/hossein/kobocat/commits{/sha}","git_commits_url":"https://api.github.com/repos/hossein/kobocat/git/commits{/sha}","comments_url":"https://api.github.com/repos/hossein/kobocat/comments{/number}","issue_comment_url":"https://api.github.com/repos/hossein/kobocat/issues/comments{/number}","contents_url":"https://api.github.com/repos/hossein/kobocat/contents/{+path}","compare_url":"https://api.github.com/repos/hossein/kobocat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hossein/kobocat/merges","archive_url":"https://api.github.com/repos/hossein/kobocat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hossein/kobocat/downloads","issues_url":"https://api.github.com/repos/hossein/kobocat/issues{/number}","pulls_url":"https://api.github.com/repos/hossein/kobocat/pulls{/number}","milestones_url":"https://api.github.com/repos/hossein/kobocat/milestones{/number}","notifications_url":"https://api.github.com/repos/hossein/kobocat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hossein/kobocat/labels{/name}","releases_url":"https://api.github.com/repos/hossein/kobocat/releases{/id}","created_at":"2015-06-17T07:32:57Z","updated_at":"2015-06-17T07:32:59Z","pushed_at":"2015-08-04T16:56:27Z","git_url":"git://github.com/hossein/kobocat.git","ssh_url":"git@github.com:hossein/kobocat.git","clone_url":"https://github.com/hossein/kobocat.git","svn_url":"https://github.com/hossein/kobocat","homepage":"kobotoolbox.org","size":22061,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kobotoolbox:master","ref":"master","sha":"80328ba9ef64fc2c961db6283dddb61366c47b31","user":{"login":"kobotoolbox","id":5543677,"avatar_url":"https://avatars.githubusercontent.com/u/5543677?v=3","gravatar_id":"","url":"https://api.github.com/users/kobotoolbox","html_url":"https://github.com/kobotoolbox","followers_url":"https://api.github.com/users/kobotoolbox/followers","following_url":"https://api.github.com/users/kobotoolbox/following{/other_user}","gists_url":"https://api.github.com/users/kobotoolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kobotoolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobotoolbox/subscriptions","organizations_url":"https://api.github.com/users/kobotoolbox/orgs","repos_url":"https://api.github.com/users/kobotoolbox/repos","events_url":"https://api.github.com/users/kobotoolbox/events{/privacy}","received_events_url":"https://api.github.com/users/kobotoolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":14497749,"name":"kobocat","full_name":"kobotoolbox/kobocat","owner":{"login":"kobotoolbox","id":5543677,"avatar_url":"https://avatars.githubusercontent.com/u/5543677?v=3","gravatar_id":"","url":"https://api.github.com/users/kobotoolbox","html_url":"https://github.com/kobotoolbox","followers_url":"https://api.github.com/users/kobotoolbox/followers","following_url":"https://api.github.com/users/kobotoolbox/following{/other_user}","gists_url":"https://api.github.com/users/kobotoolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kobotoolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobotoolbox/subscriptions","organizations_url":"https://api.github.com/users/kobotoolbox/orgs","repos_url":"https://api.github.com/users/kobotoolbox/repos","events_url":"https://api.github.com/users/kobotoolbox/events{/privacy}","received_events_url":"https://api.github.com/users/kobotoolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kobotoolbox/kobocat","description":"Data collection for humanitarian emergencies","fork":false,"url":"https://api.github.com/repos/kobotoolbox/kobocat","forks_url":"https://api.github.com/repos/kobotoolbox/kobocat/forks","keys_url":"https://api.github.com/repos/kobotoolbox/kobocat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kobotoolbox/kobocat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kobotoolbox/kobocat/teams","hooks_url":"https://api.github.com/repos/kobotoolbox/kobocat/hooks","issue_events_url":"https://api.github.com/repos/kobotoolbox/kobocat/issues/events{/number}","events_url":"https://api.github.com/repos/kobotoolbox/kobocat/events","assignees_url":"https://api.github.com/repos/kobotoolbox/kobocat/assignees{/user}","branches_url":"https://api.github.com/repos/kobotoolbox/kobocat/branches{/branch}","tags_url":"https://api.github.com/repos/kobotoolbox/kobocat/tags","blobs_url":"https://api.github.com/repos/kobotoolbox/kobocat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kobotoolbox/kobocat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kobotoolbox/kobocat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kobotoolbox/kobocat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kobotoolbox/kobocat/statuses/{sha}","languages_url":"https://api.github.com/repos/kobotoolbox/kobocat/languages","stargazers_url":"https://api.github.com/repos/kobotoolbox/kobocat/stargazers","contributors_url":"https://api.github.com/repos/kobotoolbox/kobocat/contributors","subscribers_url":"https://api.github.com/repos/kobotoolbox/kobocat/subscribers","subscription_url":"https://api.github.com/repos/kobotoolbox/kobocat/subscription","commits_url":"https://api.github.com/repos/kobotoolbox/kobocat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kobotoolbox/kobocat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kobotoolbox/kobocat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kobotoolbox/kobocat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kobotoolbox/kobocat/contents/{+path}","compare_url":"https://api.github.com/repos/kobotoolbox/kobocat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kobotoolbox/kobocat/merges","archive_url":"https://api.github.com/repos/kobotoolbox/kobocat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kobotoolbox/kobocat/downloads","issues_url":"https://api.github.com/repos/kobotoolbox/kobocat/issues{/number}","pulls_url":"https://api.github.com/repos/kobotoolbox/kobocat/pulls{/number}","milestones_url":"https://api.github.com/repos/kobotoolbox/kobocat/milestones{/number}","notifications_url":"https://api.github.com/repos/kobotoolbox/kobocat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kobotoolbox/kobocat/labels{/name}","releases_url":"https://api.github.com/repos/kobotoolbox/kobocat/releases{/id}","created_at":"2013-11-18T16:16:32Z","updated_at":"2015-05-30T03:50:54Z","pushed_at":"2015-08-01T19:06:48Z","git_url":"git://github.com/kobotoolbox/kobocat.git","ssh_url":"git@github.com:kobotoolbox/kobocat.git","clone_url":"https://github.com/kobotoolbox/kobocat.git","svn_url":"https://github.com/kobotoolbox/kobocat","homepage":"kobotoolbox.org","size":23222,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/69"},"html":{"href":"https://github.com/kobotoolbox/kobocat/pull/69"},"issue":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/issues/69"},"comments":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/kobotoolbox/kobocat/statuses/a2efab1db30c06fb2290e0be908fba9f2b602d4e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":4,"changed_files":1}}