{"action":"created","comment":{"url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/comments/36054309","id":36054309,"diff_hunk":"@@ -0,0 +1,20 @@\n+from flask import Flask\n+from flask.ext.mongoengine import MongoEngine\n+\n+app = Flask(__name__)\n+\n+app.config['DEBUG'] = True\n+app.config['MONGODB_SETTINGS'] = { 'db': 'blask' }\n+app.config['SECRET_KEY'] = 'SOMERANDOSTRING'\n+\n+db = MongoEngine(app)\n+\n+# Import and register the Blueprints\n+from app.routes.blog import blog\n+from app.routes.home import home\n+app.register_blueprint(blog)\n+app.register_blueprint(home)\n+\n+# Because our routes are now spread across multiple modules, we need to use the Blueprint name to specify which module the desired route lives in. The string inside a call to url_for is blueprint_name.function_name. We can very easily update home.html to reflect this","path":"blask-6/app/__init__.py","position":18,"original_position":18,"commit_id":"19c54d42b9a87077e3ddd0fcb202ed1041243ec1","original_commit_id":"19c54d42b9a87077e3ddd0fcb202ed1041243ec1","user":{"login":"danrschlosser","id":2433509,"avatar_url":"https://avatars.githubusercontent.com/u/2433509?v=3","gravatar_id":"","url":"https://api.github.com/users/danrschlosser","html_url":"https://github.com/danrschlosser","followers_url":"https://api.github.com/users/danrschlosser/followers","following_url":"https://api.github.com/users/danrschlosser/following{/other_user}","gists_url":"https://api.github.com/users/danrschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/danrschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrschlosser/subscriptions","organizations_url":"https://api.github.com/users/danrschlosser/orgs","repos_url":"https://api.github.com/users/danrschlosser/repos","events_url":"https://api.github.com/users/danrschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/danrschlosser/received_events","type":"User","site_admin":false},"body":"Let's add line breaks to enforce 80 chars / line.","created_at":"2015-08-03T03:42:43Z","updated_at":"2015-08-03T03:42:43Z","html_url":"https://github.com/danrschlosser/intermediate-flask/pull/3#discussion_r36054309","pull_request_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/comments/36054309"},"html":{"href":"https://github.com/danrschlosser/intermediate-flask/pull/3#discussion_r36054309"},"pull_request":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3","id":41425318,"html_url":"https://github.com/danrschlosser/intermediate-flask/pull/3","diff_url":"https://github.com/danrschlosser/intermediate-flask/pull/3.diff","patch_url":"https://github.com/danrschlosser/intermediate-flask/pull/3.patch","issue_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues/3","number":3,"state":"open","locked":false,"title":"Parts 6.1 and 6.2","user":{"login":"hydrosquall","id":9020979,"avatar_url":"https://avatars.githubusercontent.com/u/9020979?v=3","gravatar_id":"","url":"https://api.github.com/users/hydrosquall","html_url":"https://github.com/hydrosquall","followers_url":"https://api.github.com/users/hydrosquall/followers","following_url":"https://api.github.com/users/hydrosquall/following{/other_user}","gists_url":"https://api.github.com/users/hydrosquall/gists{/gist_id}","starred_url":"https://api.github.com/users/hydrosquall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydrosquall/subscriptions","organizations_url":"https://api.github.com/users/hydrosquall/orgs","repos_url":"https://api.github.com/users/hydrosquall/repos","events_url":"https://api.github.com/users/hydrosquall/events{/privacy}","received_events_url":"https://api.github.com/users/hydrosquall/received_events","type":"User","site_admin":false},"body":"Added new routes and a fun placeholder images functionality!","created_at":"2015-08-02T21:56:29Z","updated_at":"2015-08-03T03:42:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ced36338d16623277a2d200dddfee57ae6021548","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3/commits","review_comments_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3/comments","review_comment_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues/3/comments","statuses_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/statuses/19c54d42b9a87077e3ddd0fcb202ed1041243ec1","head":{"label":"hydrosquall:master","ref":"master","sha":"19c54d42b9a87077e3ddd0fcb202ed1041243ec1","user":{"login":"hydrosquall","id":9020979,"avatar_url":"https://avatars.githubusercontent.com/u/9020979?v=3","gravatar_id":"","url":"https://api.github.com/users/hydrosquall","html_url":"https://github.com/hydrosquall","followers_url":"https://api.github.com/users/hydrosquall/followers","following_url":"https://api.github.com/users/hydrosquall/following{/other_user}","gists_url":"https://api.github.com/users/hydrosquall/gists{/gist_id}","starred_url":"https://api.github.com/users/hydrosquall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydrosquall/subscriptions","organizations_url":"https://api.github.com/users/hydrosquall/orgs","repos_url":"https://api.github.com/users/hydrosquall/repos","events_url":"https://api.github.com/users/hydrosquall/events{/privacy}","received_events_url":"https://api.github.com/users/hydrosquall/received_events","type":"User","site_admin":false},"repo":{"id":39785151,"name":"intermediate-flask","full_name":"hydrosquall/intermediate-flask","owner":{"login":"hydrosquall","id":9020979,"avatar_url":"https://avatars.githubusercontent.com/u/9020979?v=3","gravatar_id":"","url":"https://api.github.com/users/hydrosquall","html_url":"https://github.com/hydrosquall","followers_url":"https://api.github.com/users/hydrosquall/followers","following_url":"https://api.github.com/users/hydrosquall/following{/other_user}","gists_url":"https://api.github.com/users/hydrosquall/gists{/gist_id}","starred_url":"https://api.github.com/users/hydrosquall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydrosquall/subscriptions","organizations_url":"https://api.github.com/users/hydrosquall/orgs","repos_url":"https://api.github.com/users/hydrosquall/repos","events_url":"https://api.github.com/users/hydrosquall/events{/privacy}","received_events_url":"https://api.github.com/users/hydrosquall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hydrosquall/intermediate-flask","description":"A look at some intermediate Flask features","fork":true,"url":"https://api.github.com/repos/hydrosquall/intermediate-flask","forks_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/forks","keys_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/teams","hooks_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/hooks","issue_events_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/issues/events{/number}","events_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/events","assignees_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/assignees{/user}","branches_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/branches{/branch}","tags_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/tags","blobs_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/statuses/{sha}","languages_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/languages","stargazers_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/stargazers","contributors_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/contributors","subscribers_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/subscribers","subscription_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/subscription","commits_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/contents/{+path}","compare_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/merges","archive_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/downloads","issues_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/issues{/number}","pulls_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/pulls{/number}","milestones_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/milestones{/number}","notifications_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/labels{/name}","releases_url":"https://api.github.com/repos/hydrosquall/intermediate-flask/releases{/id}","created_at":"2015-07-27T16:26:45Z","updated_at":"2015-07-27T16:26:45Z","pushed_at":"2015-08-02T21:54:55Z","git_url":"git://github.com/hydrosquall/intermediate-flask.git","ssh_url":"git@github.com:hydrosquall/intermediate-flask.git","clone_url":"https://github.com/hydrosquall/intermediate-flask.git","svn_url":"https://github.com/hydrosquall/intermediate-flask","homepage":null,"size":386,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"danrschlosser:master","ref":"master","sha":"f3eebd8c23e154146bfdd436110a72af287293a5","user":{"login":"danrschlosser","id":2433509,"avatar_url":"https://avatars.githubusercontent.com/u/2433509?v=3","gravatar_id":"","url":"https://api.github.com/users/danrschlosser","html_url":"https://github.com/danrschlosser","followers_url":"https://api.github.com/users/danrschlosser/followers","following_url":"https://api.github.com/users/danrschlosser/following{/other_user}","gists_url":"https://api.github.com/users/danrschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/danrschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrschlosser/subscriptions","organizations_url":"https://api.github.com/users/danrschlosser/orgs","repos_url":"https://api.github.com/users/danrschlosser/repos","events_url":"https://api.github.com/users/danrschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/danrschlosser/received_events","type":"User","site_admin":false},"repo":{"id":26510961,"name":"intermediate-flask","full_name":"danrschlosser/intermediate-flask","owner":{"login":"danrschlosser","id":2433509,"avatar_url":"https://avatars.githubusercontent.com/u/2433509?v=3","gravatar_id":"","url":"https://api.github.com/users/danrschlosser","html_url":"https://github.com/danrschlosser","followers_url":"https://api.github.com/users/danrschlosser/followers","following_url":"https://api.github.com/users/danrschlosser/following{/other_user}","gists_url":"https://api.github.com/users/danrschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/danrschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrschlosser/subscriptions","organizations_url":"https://api.github.com/users/danrschlosser/orgs","repos_url":"https://api.github.com/users/danrschlosser/repos","events_url":"https://api.github.com/users/danrschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/danrschlosser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danrschlosser/intermediate-flask","description":"A look at some intermediate Flask features","fork":false,"url":"https://api.github.com/repos/danrschlosser/intermediate-flask","forks_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/forks","keys_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/teams","hooks_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/hooks","issue_events_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues/events{/number}","events_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/events","assignees_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/assignees{/user}","branches_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/branches{/branch}","tags_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/tags","blobs_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/statuses/{sha}","languages_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/languages","stargazers_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/stargazers","contributors_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/contributors","subscribers_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/subscribers","subscription_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/subscription","commits_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/contents/{+path}","compare_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/merges","archive_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/downloads","issues_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues{/number}","pulls_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls{/number}","milestones_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/milestones{/number}","notifications_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/labels{/name}","releases_url":"https://api.github.com/repos/danrschlosser/intermediate-flask/releases{/id}","created_at":"2014-11-12T00:04:02Z","updated_at":"2015-07-28T01:05:11Z","pushed_at":"2015-08-02T21:56:29Z","git_url":"git://github.com/danrschlosser/intermediate-flask.git","ssh_url":"git@github.com:danrschlosser/intermediate-flask.git","clone_url":"https://github.com/danrschlosser/intermediate-flask.git","svn_url":"https://github.com/danrschlosser/intermediate-flask","homepage":null,"size":494,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3"},"html":{"href":"https://github.com/danrschlosser/intermediate-flask/pull/3"},"issue":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues/3"},"comments":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/danrschlosser/intermediate-flask/statuses/19c54d42b9a87077e3ddd0fcb202ed1041243ec1"}}}}