{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pontoon/issues/481","repository_url":"https://api.github.com/repos/mozilla/pontoon","labels_url":"https://api.github.com/repos/mozilla/pontoon/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pontoon/issues/481/comments","events_url":"https://api.github.com/repos/mozilla/pontoon/issues/481/events","html_url":"https://github.com/mozilla/pontoon/pull/481","id":183287604,"number":481,"title":"Bug 1310510 - add virtualenv and fix CSP","user":{"login":"bychek-ru","id":3993729,"avatar_url":"https://avatars.githubusercontent.com/u/3993729?v=3","gravatar_id":"","url":"https://api.github.com/users/bychek-ru","html_url":"https://github.com/bychek-ru","followers_url":"https://api.github.com/users/bychek-ru/followers","following_url":"https://api.github.com/users/bychek-ru/following{/other_user}","gists_url":"https://api.github.com/users/bychek-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/bychek-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bychek-ru/subscriptions","organizations_url":"https://api.github.com/users/bychek-ru/orgs","repos_url":"https://api.github.com/users/bychek-ru/repos","events_url":"https://api.github.com/users/bychek-ru/events{/privacy}","received_events_url":"https://api.github.com/users/bychek-ru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-16T19:55:45Z","updated_at":"2016-10-17T09:13:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/pontoon/pulls/481","html_url":"https://github.com/mozilla/pontoon/pull/481","diff_url":"https://github.com/mozilla/pontoon/pull/481.diff","patch_url":"https://github.com/mozilla/pontoon/pull/481.patch"},"body":"1)We must modify django-debug-toolbar or add ajax.googleapis.com in CSP, because requirements-dev.txt contains django-debug-toolbar which needs access to ajax.googleapis.com\r\n2)we need \"data:\" for base64 images. For example:\r\n![2016-10-16_23-21-39 2](https://cloud.githubusercontent.com/assets/3993729/19420406/d2209082-93fb-11e6-9df3-0b88d450e582.png)\r\n3)About Virtualenv\r\n![2016-10-16_22-58-09](https://cloud.githubusercontent.com/assets/3993729/19420415/f089890c-93fb-11e6-9cfb-d55d562fc671.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/pontoon/issues/comments/254154507","html_url":"https://github.com/mozilla/pontoon/pull/481#issuecomment-254154507","issue_url":"https://api.github.com/repos/mozilla/pontoon/issues/481","id":254154507,"user":{"login":"mathjazz","id":626716,"avatar_url":"https://avatars.githubusercontent.com/u/626716?v=3","gravatar_id":"","url":"https://api.github.com/users/mathjazz","html_url":"https://github.com/mathjazz","followers_url":"https://api.github.com/users/mathjazz/followers","following_url":"https://api.github.com/users/mathjazz/following{/other_user}","gists_url":"https://api.github.com/users/mathjazz/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjazz/subscriptions","organizations_url":"https://api.github.com/users/mathjazz/orgs","repos_url":"https://api.github.com/users/mathjazz/repos","events_url":"https://api.github.com/users/mathjazz/events{/privacy}","received_events_url":"https://api.github.com/users/mathjazz/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T09:13:01Z","updated_at":"2016-10-17T09:13:01Z","body":"As @jotes pointed out in the bug, let's override the CSP rules in the `pontoon/settings/dev.py` file, so that we keep the production and stage CSP unchanhged: \r\n\r\n```\r\nCSP_SCRIPT_SRC = base.CSP_SCRIPT_SRC + ('http://ajax.googleapis.com',)\r\nCSP_IMG_SRC = base.CSP_IMG_SRC + ('data:',)\r\n```\r\n\r\nWe actually have virtualenv listed as a requirement, but it's not present in that `apt-get install` snippet, so good move in adding it there, thanks!"}}
{"actor":{"display_login":"mathjazz"}}