{"action":"created","comment":{"url":"https://api.github.com/repos/Solutron/flask-by-example/pulls/comments/28750108","id":28750108,"diff_hunk":"@@ -10,20 +10,30 @@\n \n # PyPi Imports\n from flask import render_template\n-from flask import Flask, app, request, safe_join, send_from_directory\n+from flask import (\n+    Flask,\n+    app,\n+    request,\n+    safe_join,\n+    send_from_directory\n+)\n from flask.ext.assets import Environment\n from webassets.loaders import PythonLoader\n \n-\n # Base Imports\n import os\n \n+# Project Imports\n+import secrets\n+\n \n-# Settings\n+# Create App\n app = Flask(__name__, static_folder='static')\n+\n+# App Config\n app.config.from_object(os.environ['APP_SETTINGS'])\n app.config['ASSETS_DEBUG'] = True\n-\n+app.secret_key = secrets.secret_key","path":"app.py","position":31,"original_position":31,"commit_id":"abad027c9575fed77ce6c8be96607a68a119a4c3","original_commit_id":"abad027c9575fed77ce6c8be96607a68a119a4c3","user":{"login":"Solutron","id":8084550,"avatar_url":"https://avatars.githubusercontent.com/u/8084550?v=3","gravatar_id":"","url":"https://api.github.com/users/Solutron","html_url":"https://github.com/Solutron","followers_url":"https://api.github.com/users/Solutron/followers","following_url":"https://api.github.com/users/Solutron/following{/other_user}","gists_url":"https://api.github.com/users/Solutron/gists{/gist_id}","starred_url":"https://api.github.com/users/Solutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solutron/subscriptions","organizations_url":"https://api.github.com/users/Solutron/orgs","repos_url":"https://api.github.com/users/Solutron/repos","events_url":"https://api.github.com/users/Solutron/events{/privacy}","received_events_url":"https://api.github.com/users/Solutron/received_events","type":"User","site_admin":false},"body":"maybe dynamo db would be good for storing this, or an encrypted s3 bucket.","created_at":"2015-04-21T04:58:06Z","updated_at":"2015-04-21T04:58:06Z","html_url":"https://github.com/Solutron/flask-by-example/pull/12#discussion_r28750108","pull_request_url":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/Solutron/flask-by-example/pulls/comments/28750108"},"html":{"href":"https://github.com/Solutron/flask-by-example/pull/12#discussion_r28750108"},"pull_request":{"href":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12","id":33729213,"html_url":"https://github.com/Solutron/flask-by-example/pull/12","diff_url":"https://github.com/Solutron/flask-by-example/pull/12.diff","patch_url":"https://github.com/Solutron/flask-by-example/pull/12.patch","issue_url":"https://api.github.com/repos/Solutron/flask-by-example/issues/12","number":12,"state":"open","locked":false,"title":"added secret_key","user":{"login":"Solutron","id":8084550,"avatar_url":"https://avatars.githubusercontent.com/u/8084550?v=3","gravatar_id":"","url":"https://api.github.com/users/Solutron","html_url":"https://github.com/Solutron","followers_url":"https://api.github.com/users/Solutron/followers","following_url":"https://api.github.com/users/Solutron/following{/other_user}","gists_url":"https://api.github.com/users/Solutron/gists{/gist_id}","starred_url":"https://api.github.com/users/Solutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solutron/subscriptions","organizations_url":"https://api.github.com/users/Solutron/orgs","repos_url":"https://api.github.com/users/Solutron/repos","events_url":"https://api.github.com/users/Solutron/events{/privacy}","received_events_url":"https://api.github.com/users/Solutron/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-21T04:56:53Z","updated_at":"2015-04-21T04:58:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13ab0b76343c604bd190830f58ec90c7460e359f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12/commits","review_comments_url":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12/comments","review_comment_url":"https://api.github.com/repos/Solutron/flask-by-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Solutron/flask-by-example/issues/12/comments","statuses_url":"https://api.github.com/repos/Solutron/flask-by-example/statuses/abad027c9575fed77ce6c8be96607a68a119a4c3","head":{"label":"Solutron:secret_key","ref":"secret_key","sha":"abad027c9575fed77ce6c8be96607a68a119a4c3","user":{"login":"Solutron","id":8084550,"avatar_url":"https://avatars.githubusercontent.com/u/8084550?v=3","gravatar_id":"","url":"https://api.github.com/users/Solutron","html_url":"https://github.com/Solutron","followers_url":"https://api.github.com/users/Solutron/followers","following_url":"https://api.github.com/users/Solutron/following{/other_user}","gists_url":"https://api.github.com/users/Solutron/gists{/gist_id}","starred_url":"https://api.github.com/users/Solutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solutron/subscriptions","organizations_url":"https://api.github.com/users/Solutron/orgs","repos_url":"https://api.github.com/users/Solutron/repos","events_url":"https://api.github.com/users/Solutron/events{/privacy}","received_events_url":"https://api.github.com/users/Solutron/received_events","type":"User","site_admin":false},"repo":{"id":33792931,"name":"flask-by-example","full_name":"Solutron/flask-by-example","owner":{"login":"Solutron","id":8084550,"avatar_url":"https://avatars.githubusercontent.com/u/8084550?v=3","gravatar_id":"","url":"https://api.github.com/users/Solutron","html_url":"https://github.com/Solutron","followers_url":"https://api.github.com/users/Solutron/followers","following_url":"https://api.github.com/users/Solutron/following{/other_user}","gists_url":"https://api.github.com/users/Solutron/gists{/gist_id}","starred_url":"https://api.github.com/users/Solutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solutron/subscriptions","organizations_url":"https://api.github.com/users/Solutron/orgs","repos_url":"https://api.github.com/users/Solutron/repos","events_url":"https://api.github.com/users/Solutron/events{/privacy}","received_events_url":"https://api.github.com/users/Solutron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Solutron/flask-by-example","description":"","fork":false,"url":"https://api.github.com/repos/Solutron/flask-by-example","forks_url":"https://api.github.com/repos/Solutron/flask-by-example/forks","keys_url":"https://api.github.com/repos/Solutron/flask-by-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Solutron/flask-by-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Solutron/flask-by-example/teams","hooks_url":"https://api.github.com/repos/Solutron/flask-by-example/hooks","issue_events_url":"https://api.github.com/repos/Solutron/flask-by-example/issues/events{/number}","events_url":"https://api.github.com/repos/Solutron/flask-by-example/events","assignees_url":"https://api.github.com/repos/Solutron/flask-by-example/assignees{/user}","branches_url":"https://api.github.com/repos/Solutron/flask-by-example/branches{/branch}","tags_url":"https://api.github.com/repos/Solutron/flask-by-example/tags","blobs_url":"https://api.github.com/repos/Solutron/flask-by-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Solutron/flask-by-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Solutron/flask-by-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/Solutron/flask-by-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Solutron/flask-by-example/statuses/{sha}","languages_url":"https://api.github.com/repos/Solutron/flask-by-example/languages","stargazers_url":"https://api.github.com/repos/Solutron/flask-by-example/stargazers","contributors_url":"https://api.github.com/repos/Solutron/flask-by-example/contributors","subscribers_url":"https://api.github.com/repos/Solutron/flask-by-example/subscribers","subscription_url":"https://api.github.com/repos/Solutron/flask-by-example/subscription","commits_url":"https://api.github.com/repos/Solutron/flask-by-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/Solutron/flask-by-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/Solutron/flask-by-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/Solutron/flask-by-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/Solutron/flask-by-example/contents/{+path}","compare_url":"https://api.github.com/repos/Solutron/flask-by-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Solutron/flask-by-example/merges","archive_url":"https://api.github.com/repos/Solutron/flask-by-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Solutron/flask-by-example/downloads","issues_url":"https://api.github.com/repos/Solutron/flask-by-example/issues{/number}","pulls_url":"https://api.github.com/repos/Solutron/flask-by-example/pulls{/number}","milestones_url":"https://api.github.com/repos/Solutron/flask-by-example/milestones{/number}","notifications_url":"https://api.github.com/repos/Solutron/flask-by-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Solutron/flask-by-example/labels{/name}","releases_url":"https://api.github.com/repos/Solutron/flask-by-example/releases{/id}","created_at":"2015-04-11T21:19:46Z","updated_at":"2015-04-21T04:28:39Z","pushed_at":"2015-04-21T04:56:54Z","git_url":"git://github.com/Solutron/flask-by-example.git","ssh_url":"git@github.com:Solutron/flask-by-example.git","clone_url":"https://github.com/Solutron/flask-by-example.git","svn_url":"https://github.com/Solutron/flask-by-example","homepage":null,"size":1436,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Solutron:master","ref":"master","sha":"3d18f7a6bcf4b073f8bff140dd633c98a08718e6","user":{"login":"Solutron","id":8084550,"avatar_url":"https://avatars.githubusercontent.com/u/8084550?v=3","gravatar_id":"","url":"https://api.github.com/users/Solutron","html_url":"https://github.com/Solutron","followers_url":"https://api.github.com/users/Solutron/followers","following_url":"https://api.github.com/users/Solutron/following{/other_user}","gists_url":"https://api.github.com/users/Solutron/gists{/gist_id}","starred_url":"https://api.github.com/users/Solutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solutron/subscriptions","organizations_url":"https://api.github.com/users/Solutron/orgs","repos_url":"https://api.github.com/users/Solutron/repos","events_url":"https://api.github.com/users/Solutron/events{/privacy}","received_events_url":"https://api.github.com/users/Solutron/received_events","type":"User","site_admin":false},"repo":{"id":33792931,"name":"flask-by-example","full_name":"Solutron/flask-by-example","owner":{"login":"Solutron","id":8084550,"avatar_url":"https://avatars.githubusercontent.com/u/8084550?v=3","gravatar_id":"","url":"https://api.github.com/users/Solutron","html_url":"https://github.com/Solutron","followers_url":"https://api.github.com/users/Solutron/followers","following_url":"https://api.github.com/users/Solutron/following{/other_user}","gists_url":"https://api.github.com/users/Solutron/gists{/gist_id}","starred_url":"https://api.github.com/users/Solutron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solutron/subscriptions","organizations_url":"https://api.github.com/users/Solutron/orgs","repos_url":"https://api.github.com/users/Solutron/repos","events_url":"https://api.github.com/users/Solutron/events{/privacy}","received_events_url":"https://api.github.com/users/Solutron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Solutron/flask-by-example","description":"","fork":false,"url":"https://api.github.com/repos/Solutron/flask-by-example","forks_url":"https://api.github.com/repos/Solutron/flask-by-example/forks","keys_url":"https://api.github.com/repos/Solutron/flask-by-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Solutron/flask-by-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Solutron/flask-by-example/teams","hooks_url":"https://api.github.com/repos/Solutron/flask-by-example/hooks","issue_events_url":"https://api.github.com/repos/Solutron/flask-by-example/issues/events{/number}","events_url":"https://api.github.com/repos/Solutron/flask-by-example/events","assignees_url":"https://api.github.com/repos/Solutron/flask-by-example/assignees{/user}","branches_url":"https://api.github.com/repos/Solutron/flask-by-example/branches{/branch}","tags_url":"https://api.github.com/repos/Solutron/flask-by-example/tags","blobs_url":"https://api.github.com/repos/Solutron/flask-by-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Solutron/flask-by-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Solutron/flask-by-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/Solutron/flask-by-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Solutron/flask-by-example/statuses/{sha}","languages_url":"https://api.github.com/repos/Solutron/flask-by-example/languages","stargazers_url":"https://api.github.com/repos/Solutron/flask-by-example/stargazers","contributors_url":"https://api.github.com/repos/Solutron/flask-by-example/contributors","subscribers_url":"https://api.github.com/repos/Solutron/flask-by-example/subscribers","subscription_url":"https://api.github.com/repos/Solutron/flask-by-example/subscription","commits_url":"https://api.github.com/repos/Solutron/flask-by-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/Solutron/flask-by-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/Solutron/flask-by-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/Solutron/flask-by-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/Solutron/flask-by-example/contents/{+path}","compare_url":"https://api.github.com/repos/Solutron/flask-by-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Solutron/flask-by-example/merges","archive_url":"https://api.github.com/repos/Solutron/flask-by-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Solutron/flask-by-example/downloads","issues_url":"https://api.github.com/repos/Solutron/flask-by-example/issues{/number}","pulls_url":"https://api.github.com/repos/Solutron/flask-by-example/pulls{/number}","milestones_url":"https://api.github.com/repos/Solutron/flask-by-example/milestones{/number}","notifications_url":"https://api.github.com/repos/Solutron/flask-by-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Solutron/flask-by-example/labels{/name}","releases_url":"https://api.github.com/repos/Solutron/flask-by-example/releases{/id}","created_at":"2015-04-11T21:19:46Z","updated_at":"2015-04-21T04:28:39Z","pushed_at":"2015-04-21T04:56:54Z","git_url":"git://github.com/Solutron/flask-by-example.git","ssh_url":"git@github.com:Solutron/flask-by-example.git","clone_url":"https://github.com/Solutron/flask-by-example.git","svn_url":"https://github.com/Solutron/flask-by-example","homepage":null,"size":1436,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12"},"html":{"href":"https://github.com/Solutron/flask-by-example/pull/12"},"issue":{"href":"https://api.github.com/repos/Solutron/flask-by-example/issues/12"},"comments":{"href":"https://api.github.com/repos/Solutron/flask-by-example/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/Solutron/flask-by-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Solutron/flask-by-example/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/Solutron/flask-by-example/statuses/abad027c9575fed77ce6c8be96607a68a119a4c3"}}}}