{"action":"created","comment":{"url":"https://api.github.com/repos/tpeek/django-imager/pulls/comments/35839325","id":35839325,"diff_hunk":"@@ -0,0 +1,37 @@\n+from __future__ import unicode_literals\n+from django.shortcuts import render, render_to_response\n+from django.http import HttpResponse\n+from django.template import Template\n+from django.template import loader\n+from django.views.generic import TemplateView\n+from imager_images.models import Photo, Album\n+from django.contrib.auth.models import User\n+from django.conf import settings\n+\n+\n+def home_view(request):\n+    try:\n+        pic_url = Photo.objects.filter(\n+                  privacy='PU').order_by('?').first().file","path":"imagersite/imagersite/views.py","position":15,"original_position":15,"commit_id":"d34259dafbf029a504fb3b74530543f6ba027a4a","original_commit_id":"d34259dafbf029a504fb3b74530543f6ba027a4a","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"body":"This is indented too far.  Should only be four spaces in from the level of `pic_url` above it.","created_at":"2015-07-30T05:30:46Z","updated_at":"2015-07-30T05:30:46Z","html_url":"https://github.com/tpeek/django-imager/pull/3#discussion_r35839325","pull_request_url":"https://api.github.com/repos/tpeek/django-imager/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/tpeek/django-imager/pulls/comments/35839325"},"html":{"href":"https://github.com/tpeek/django-imager/pull/3#discussion_r35839325"},"pull_request":{"href":"https://api.github.com/repos/tpeek/django-imager/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/tpeek/django-imager/pulls/3","id":41192407,"html_url":"https://github.com/tpeek/django-imager/pull/3","diff_url":"https://github.com/tpeek/django-imager/pull/3.diff","patch_url":"https://github.com/tpeek/django-imager/pull/3.patch","issue_url":"https://api.github.com/repos/tpeek/django-imager/issues/3","number":3,"state":"open","locked":false,"title":"Frontend","user":{"login":"jay-tyler","id":7076233,"avatar_url":"https://avatars.githubusercontent.com/u/7076233?v=3","gravatar_id":"","url":"https://api.github.com/users/jay-tyler","html_url":"https://github.com/jay-tyler","followers_url":"https://api.github.com/users/jay-tyler/followers","following_url":"https://api.github.com/users/jay-tyler/following{/other_user}","gists_url":"https://api.github.com/users/jay-tyler/gists{/gist_id}","starred_url":"https://api.github.com/users/jay-tyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jay-tyler/subscriptions","organizations_url":"https://api.github.com/users/jay-tyler/orgs","repos_url":"https://api.github.com/users/jay-tyler/repos","events_url":"https://api.github.com/users/jay-tyler/events{/privacy}","received_events_url":"https://api.github.com/users/jay-tyler/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-30T02:20:42Z","updated_at":"2015-07-30T05:30:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee111801f7ad52986c75120753c0b22c6e2eaa43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tpeek/django-imager/pulls/3/commits","review_comments_url":"https://api.github.com/repos/tpeek/django-imager/pulls/3/comments","review_comment_url":"https://api.github.com/repos/tpeek/django-imager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tpeek/django-imager/issues/3/comments","statuses_url":"https://api.github.com/repos/tpeek/django-imager/statuses/d34259dafbf029a504fb3b74530543f6ba027a4a","head":{"label":"tpeek:frontend","ref":"frontend","sha":"d34259dafbf029a504fb3b74530543f6ba027a4a","user":{"login":"tpeek","id":7531241,"avatar_url":"https://avatars.githubusercontent.com/u/7531241?v=3","gravatar_id":"","url":"https://api.github.com/users/tpeek","html_url":"https://github.com/tpeek","followers_url":"https://api.github.com/users/tpeek/followers","following_url":"https://api.github.com/users/tpeek/following{/other_user}","gists_url":"https://api.github.com/users/tpeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpeek/subscriptions","organizations_url":"https://api.github.com/users/tpeek/orgs","repos_url":"https://api.github.com/users/tpeek/repos","events_url":"https://api.github.com/users/tpeek/events{/privacy}","received_events_url":"https://api.github.com/users/tpeek/received_events","type":"User","site_admin":false},"repo":{"id":39540996,"name":"django-imager","full_name":"tpeek/django-imager","owner":{"login":"tpeek","id":7531241,"avatar_url":"https://avatars.githubusercontent.com/u/7531241?v=3","gravatar_id":"","url":"https://api.github.com/users/tpeek","html_url":"https://github.com/tpeek","followers_url":"https://api.github.com/users/tpeek/followers","following_url":"https://api.github.com/users/tpeek/following{/other_user}","gists_url":"https://api.github.com/users/tpeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpeek/subscriptions","organizations_url":"https://api.github.com/users/tpeek/orgs","repos_url":"https://api.github.com/users/tpeek/repos","events_url":"https://api.github.com/users/tpeek/events{/privacy}","received_events_url":"https://api.github.com/users/tpeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tpeek/django-imager","description":"A cool website that allows for a user to upload pictures and sort them into albums.","fork":false,"url":"https://api.github.com/repos/tpeek/django-imager","forks_url":"https://api.github.com/repos/tpeek/django-imager/forks","keys_url":"https://api.github.com/repos/tpeek/django-imager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tpeek/django-imager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tpeek/django-imager/teams","hooks_url":"https://api.github.com/repos/tpeek/django-imager/hooks","issue_events_url":"https://api.github.com/repos/tpeek/django-imager/issues/events{/number}","events_url":"https://api.github.com/repos/tpeek/django-imager/events","assignees_url":"https://api.github.com/repos/tpeek/django-imager/assignees{/user}","branches_url":"https://api.github.com/repos/tpeek/django-imager/branches{/branch}","tags_url":"https://api.github.com/repos/tpeek/django-imager/tags","blobs_url":"https://api.github.com/repos/tpeek/django-imager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tpeek/django-imager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tpeek/django-imager/git/refs{/sha}","trees_url":"https://api.github.com/repos/tpeek/django-imager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tpeek/django-imager/statuses/{sha}","languages_url":"https://api.github.com/repos/tpeek/django-imager/languages","stargazers_url":"https://api.github.com/repos/tpeek/django-imager/stargazers","contributors_url":"https://api.github.com/repos/tpeek/django-imager/contributors","subscribers_url":"https://api.github.com/repos/tpeek/django-imager/subscribers","subscription_url":"https://api.github.com/repos/tpeek/django-imager/subscription","commits_url":"https://api.github.com/repos/tpeek/django-imager/commits{/sha}","git_commits_url":"https://api.github.com/repos/tpeek/django-imager/git/commits{/sha}","comments_url":"https://api.github.com/repos/tpeek/django-imager/comments{/number}","issue_comment_url":"https://api.github.com/repos/tpeek/django-imager/issues/comments{/number}","contents_url":"https://api.github.com/repos/tpeek/django-imager/contents/{+path}","compare_url":"https://api.github.com/repos/tpeek/django-imager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tpeek/django-imager/merges","archive_url":"https://api.github.com/repos/tpeek/django-imager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tpeek/django-imager/downloads","issues_url":"https://api.github.com/repos/tpeek/django-imager/issues{/number}","pulls_url":"https://api.github.com/repos/tpeek/django-imager/pulls{/number}","milestones_url":"https://api.github.com/repos/tpeek/django-imager/milestones{/number}","notifications_url":"https://api.github.com/repos/tpeek/django-imager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tpeek/django-imager/labels{/name}","releases_url":"https://api.github.com/repos/tpeek/django-imager/releases{/id}","created_at":"2015-07-23T02:22:44Z","updated_at":"2015-07-23T02:22:44Z","pushed_at":"2015-07-30T04:25:13Z","git_url":"git://github.com/tpeek/django-imager.git","ssh_url":"git@github.com:tpeek/django-imager.git","clone_url":"https://github.com/tpeek/django-imager.git","svn_url":"https://github.com/tpeek/django-imager","homepage":null,"size":344,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"tpeek:master","ref":"master","sha":"d7ea2f014f24b736f537f1e4925f575ef6c7e27e","user":{"login":"tpeek","id":7531241,"avatar_url":"https://avatars.githubusercontent.com/u/7531241?v=3","gravatar_id":"","url":"https://api.github.com/users/tpeek","html_url":"https://github.com/tpeek","followers_url":"https://api.github.com/users/tpeek/followers","following_url":"https://api.github.com/users/tpeek/following{/other_user}","gists_url":"https://api.github.com/users/tpeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpeek/subscriptions","organizations_url":"https://api.github.com/users/tpeek/orgs","repos_url":"https://api.github.com/users/tpeek/repos","events_url":"https://api.github.com/users/tpeek/events{/privacy}","received_events_url":"https://api.github.com/users/tpeek/received_events","type":"User","site_admin":false},"repo":{"id":39540996,"name":"django-imager","full_name":"tpeek/django-imager","owner":{"login":"tpeek","id":7531241,"avatar_url":"https://avatars.githubusercontent.com/u/7531241?v=3","gravatar_id":"","url":"https://api.github.com/users/tpeek","html_url":"https://github.com/tpeek","followers_url":"https://api.github.com/users/tpeek/followers","following_url":"https://api.github.com/users/tpeek/following{/other_user}","gists_url":"https://api.github.com/users/tpeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpeek/subscriptions","organizations_url":"https://api.github.com/users/tpeek/orgs","repos_url":"https://api.github.com/users/tpeek/repos","events_url":"https://api.github.com/users/tpeek/events{/privacy}","received_events_url":"https://api.github.com/users/tpeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tpeek/django-imager","description":"A cool website that allows for a user to upload pictures and sort them into albums.","fork":false,"url":"https://api.github.com/repos/tpeek/django-imager","forks_url":"https://api.github.com/repos/tpeek/django-imager/forks","keys_url":"https://api.github.com/repos/tpeek/django-imager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tpeek/django-imager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tpeek/django-imager/teams","hooks_url":"https://api.github.com/repos/tpeek/django-imager/hooks","issue_events_url":"https://api.github.com/repos/tpeek/django-imager/issues/events{/number}","events_url":"https://api.github.com/repos/tpeek/django-imager/events","assignees_url":"https://api.github.com/repos/tpeek/django-imager/assignees{/user}","branches_url":"https://api.github.com/repos/tpeek/django-imager/branches{/branch}","tags_url":"https://api.github.com/repos/tpeek/django-imager/tags","blobs_url":"https://api.github.com/repos/tpeek/django-imager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tpeek/django-imager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tpeek/django-imager/git/refs{/sha}","trees_url":"https://api.github.com/repos/tpeek/django-imager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tpeek/django-imager/statuses/{sha}","languages_url":"https://api.github.com/repos/tpeek/django-imager/languages","stargazers_url":"https://api.github.com/repos/tpeek/django-imager/stargazers","contributors_url":"https://api.github.com/repos/tpeek/django-imager/contributors","subscribers_url":"https://api.github.com/repos/tpeek/django-imager/subscribers","subscription_url":"https://api.github.com/repos/tpeek/django-imager/subscription","commits_url":"https://api.github.com/repos/tpeek/django-imager/commits{/sha}","git_commits_url":"https://api.github.com/repos/tpeek/django-imager/git/commits{/sha}","comments_url":"https://api.github.com/repos/tpeek/django-imager/comments{/number}","issue_comment_url":"https://api.github.com/repos/tpeek/django-imager/issues/comments{/number}","contents_url":"https://api.github.com/repos/tpeek/django-imager/contents/{+path}","compare_url":"https://api.github.com/repos/tpeek/django-imager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tpeek/django-imager/merges","archive_url":"https://api.github.com/repos/tpeek/django-imager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tpeek/django-imager/downloads","issues_url":"https://api.github.com/repos/tpeek/django-imager/issues{/number}","pulls_url":"https://api.github.com/repos/tpeek/django-imager/pulls{/number}","milestones_url":"https://api.github.com/repos/tpeek/django-imager/milestones{/number}","notifications_url":"https://api.github.com/repos/tpeek/django-imager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tpeek/django-imager/labels{/name}","releases_url":"https://api.github.com/repos/tpeek/django-imager/releases{/id}","created_at":"2015-07-23T02:22:44Z","updated_at":"2015-07-23T02:22:44Z","pushed_at":"2015-07-30T04:25:13Z","git_url":"git://github.com/tpeek/django-imager.git","ssh_url":"git@github.com:tpeek/django-imager.git","clone_url":"https://github.com/tpeek/django-imager.git","svn_url":"https://github.com/tpeek/django-imager","homepage":null,"size":344,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tpeek/django-imager/pulls/3"},"html":{"href":"https://github.com/tpeek/django-imager/pull/3"},"issue":{"href":"https://api.github.com/repos/tpeek/django-imager/issues/3"},"comments":{"href":"https://api.github.com/repos/tpeek/django-imager/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/tpeek/django-imager/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/tpeek/django-imager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tpeek/django-imager/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/tpeek/django-imager/statuses/d34259dafbf029a504fb3b74530543f6ba027a4a"}}}}