{"action":"created","comment":{"url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/comments/56489408","id":56489408,"diff_hunk":"@@ -0,0 +1,28 @@\n+from django.shortcuts import render\n+\n+from rest_framework import status\n+from rest_framework.decorators import api_view\n+from rest_framework.response import Response\n+\n+\n+# Create your views here.\n+def index(request):\n+\t\"\"\"Display the login template.\"\"\"\n+\treturn render(request, 'views/angular_base.html', {'request': request})\n+\n+@api_view(['GET'])\n+def is_logged_in(request):\n+    \"\"\"Method view to check if request is coming from a user who is logged in\n+    through a Django backends authentication system.\"\"\"","path":"app/views.py","position":16,"original_position":16,"commit_id":"190cff0dc1d141f07e2e73a904739bb4e6ea466e","original_commit_id":"190cff0dc1d141f07e2e73a904739bb4e6ea466e","user":{"login":"andela-anandaa","id":13568167,"avatar_url":"https://avatars.githubusercontent.com/u/13568167?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-anandaa","html_url":"https://github.com/andela-anandaa","followers_url":"https://api.github.com/users/andela-anandaa/followers","following_url":"https://api.github.com/users/andela-anandaa/following{/other_user}","gists_url":"https://api.github.com/users/andela-anandaa/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-anandaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-anandaa/subscriptions","organizations_url":"https://api.github.com/users/andela-anandaa/orgs","repos_url":"https://api.github.com/users/andela-anandaa/repos","events_url":"https://api.github.com/users/andela-anandaa/events{/privacy}","received_events_url":"https://api.github.com/users/andela-anandaa/received_events","type":"User","site_admin":false},"body":"**PEP8:* the closing `\"\"\"` for the _docstring_ should come on it's own line.","created_at":"2016-03-17T11:24:59Z","updated_at":"2016-03-17T11:24:59Z","html_url":"https://github.com/andela-lkabui/checkpoint4/pull/15#discussion_r56489408","pull_request_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/comments/56489408"},"html":{"href":"https://github.com/andela-lkabui/checkpoint4/pull/15#discussion_r56489408"},"pull_request":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15","id":63183369,"html_url":"https://github.com/andela-lkabui/checkpoint4/pull/15","diff_url":"https://github.com/andela-lkabui/checkpoint4/pull/15.diff","patch_url":"https://github.com/andela-lkabui/checkpoint4/pull/15.patch","issue_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/15","number":15,"state":"open","locked":false,"title":"Checkpoint 4 Review","user":{"login":"andela-lkabui","id":13940255,"avatar_url":"https://avatars.githubusercontent.com/u/13940255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-lkabui","html_url":"https://github.com/andela-lkabui","followers_url":"https://api.github.com/users/andela-lkabui/followers","following_url":"https://api.github.com/users/andela-lkabui/following{/other_user}","gists_url":"https://api.github.com/users/andela-lkabui/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-lkabui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-lkabui/subscriptions","organizations_url":"https://api.github.com/users/andela-lkabui/orgs","repos_url":"https://api.github.com/users/andela-lkabui/repos","events_url":"https://api.github.com/users/andela-lkabui/events{/privacy}","received_events_url":"https://api.github.com/users/andela-lkabui/received_events","type":"User","site_admin":false},"body":"Pull request for checkpoint 4 review","created_at":"2016-03-17T07:34:57Z","updated_at":"2016-03-17T11:24:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32aa6967b351c359e354931e96c72c0acedb3b5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15/commits","review_comments_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15/comments","review_comment_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/15/comments","statuses_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/statuses/190cff0dc1d141f07e2e73a904739bb4e6ea466e","head":{"label":"andela-lkabui:develop","ref":"develop","sha":"190cff0dc1d141f07e2e73a904739bb4e6ea466e","user":{"login":"andela-lkabui","id":13940255,"avatar_url":"https://avatars.githubusercontent.com/u/13940255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-lkabui","html_url":"https://github.com/andela-lkabui","followers_url":"https://api.github.com/users/andela-lkabui/followers","following_url":"https://api.github.com/users/andela-lkabui/following{/other_user}","gists_url":"https://api.github.com/users/andela-lkabui/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-lkabui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-lkabui/subscriptions","organizations_url":"https://api.github.com/users/andela-lkabui/orgs","repos_url":"https://api.github.com/users/andela-lkabui/repos","events_url":"https://api.github.com/users/andela-lkabui/events{/privacy}","received_events_url":"https://api.github.com/users/andela-lkabui/received_events","type":"User","site_admin":false},"repo":{"id":52514659,"name":"checkpoint4","full_name":"andela-lkabui/checkpoint4","owner":{"login":"andela-lkabui","id":13940255,"avatar_url":"https://avatars.githubusercontent.com/u/13940255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-lkabui","html_url":"https://github.com/andela-lkabui","followers_url":"https://api.github.com/users/andela-lkabui/followers","following_url":"https://api.github.com/users/andela-lkabui/following{/other_user}","gists_url":"https://api.github.com/users/andela-lkabui/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-lkabui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-lkabui/subscriptions","organizations_url":"https://api.github.com/users/andela-lkabui/orgs","repos_url":"https://api.github.com/users/andela-lkabui/repos","events_url":"https://api.github.com/users/andela-lkabui/events{/privacy}","received_events_url":"https://api.github.com/users/andela-lkabui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-lkabui/checkpoint4","description":"A Django Powered Photo Editing App","fork":false,"url":"https://api.github.com/repos/andela-lkabui/checkpoint4","forks_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/forks","keys_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/teams","hooks_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/hooks","issue_events_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/events{/number}","events_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/events","assignees_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/assignees{/user}","branches_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/branches{/branch}","tags_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/tags","blobs_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/languages","stargazers_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/stargazers","contributors_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/contributors","subscribers_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/subscribers","subscription_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/subscription","commits_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/contents/{+path}","compare_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/merges","archive_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/downloads","issues_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues{/number}","pulls_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/labels{/name}","releases_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/releases{/id}","deployments_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/deployments","created_at":"2016-02-25T09:58:44Z","updated_at":"2016-03-02T04:56:47Z","pushed_at":"2016-03-17T07:34:57Z","git_url":"git://github.com/andela-lkabui/checkpoint4.git","ssh_url":"git@github.com:andela-lkabui/checkpoint4.git","clone_url":"https://github.com/andela-lkabui/checkpoint4.git","svn_url":"https://github.com/andela-lkabui/checkpoint4","homepage":null,"size":4864,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"andela-lkabui:master","ref":"master","sha":"db0024abc72a28a8d549fe2456716dab956ee714","user":{"login":"andela-lkabui","id":13940255,"avatar_url":"https://avatars.githubusercontent.com/u/13940255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-lkabui","html_url":"https://github.com/andela-lkabui","followers_url":"https://api.github.com/users/andela-lkabui/followers","following_url":"https://api.github.com/users/andela-lkabui/following{/other_user}","gists_url":"https://api.github.com/users/andela-lkabui/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-lkabui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-lkabui/subscriptions","organizations_url":"https://api.github.com/users/andela-lkabui/orgs","repos_url":"https://api.github.com/users/andela-lkabui/repos","events_url":"https://api.github.com/users/andela-lkabui/events{/privacy}","received_events_url":"https://api.github.com/users/andela-lkabui/received_events","type":"User","site_admin":false},"repo":{"id":52514659,"name":"checkpoint4","full_name":"andela-lkabui/checkpoint4","owner":{"login":"andela-lkabui","id":13940255,"avatar_url":"https://avatars.githubusercontent.com/u/13940255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-lkabui","html_url":"https://github.com/andela-lkabui","followers_url":"https://api.github.com/users/andela-lkabui/followers","following_url":"https://api.github.com/users/andela-lkabui/following{/other_user}","gists_url":"https://api.github.com/users/andela-lkabui/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-lkabui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-lkabui/subscriptions","organizations_url":"https://api.github.com/users/andela-lkabui/orgs","repos_url":"https://api.github.com/users/andela-lkabui/repos","events_url":"https://api.github.com/users/andela-lkabui/events{/privacy}","received_events_url":"https://api.github.com/users/andela-lkabui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-lkabui/checkpoint4","description":"A Django Powered Photo Editing App","fork":false,"url":"https://api.github.com/repos/andela-lkabui/checkpoint4","forks_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/forks","keys_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/teams","hooks_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/hooks","issue_events_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/events{/number}","events_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/events","assignees_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/assignees{/user}","branches_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/branches{/branch}","tags_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/tags","blobs_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/languages","stargazers_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/stargazers","contributors_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/contributors","subscribers_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/subscribers","subscription_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/subscription","commits_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/contents/{+path}","compare_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/merges","archive_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/downloads","issues_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues{/number}","pulls_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/labels{/name}","releases_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/releases{/id}","deployments_url":"https://api.github.com/repos/andela-lkabui/checkpoint4/deployments","created_at":"2016-02-25T09:58:44Z","updated_at":"2016-03-02T04:56:47Z","pushed_at":"2016-03-17T07:34:57Z","git_url":"git://github.com/andela-lkabui/checkpoint4.git","ssh_url":"git@github.com:andela-lkabui/checkpoint4.git","clone_url":"https://github.com/andela-lkabui/checkpoint4.git","svn_url":"https://github.com/andela-lkabui/checkpoint4","homepage":null,"size":4864,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15"},"html":{"href":"https://github.com/andela-lkabui/checkpoint4/pull/15"},"issue":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/15"},"comments":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/andela-lkabui/checkpoint4/statuses/190cff0dc1d141f07e2e73a904739bb4e6ea466e"}}}}