{"action":"created","comment":{"url":"https://api.github.com/repos/django/djangoproject.com/pulls/comments/36107836","id":36107836,"diff_hunk":"@@ -1,14 +1,21 @@\n {% extends 'base_error.html' %}\n+{% load i18n docs %}\n \n {% block title %}Page not found{% endblock %}\n \n {% block header %}<h1>404</h1>{% endblock %}\n \n {% block content %}\n-<h2>Page not found</h2>\n+  <h2>Page not found</h2>\n \n-<p>Looks like you followed a bad link. If you think it's our fault, please <a href=\"https://code.djangoproject.com/\">let us know</a>.</p>\n+  <p>Looks like you followed a bad link. If you think it's our fault, please <a href=\"https://code.djangoproject.com/\">let us know</a>.</p>\n \n-<p>Here's a link to the <a href=\"{% url 'homepage' %}\">homepage</a>. You know, just in case.</p>\n+  <p>Here's a link to the <a href=\"{% url 'homepage' %}\">homepage</a>. You know, just in case.</p>\n+\n+  <h3>{% trans 'Search the documentation' %}</h3>\n+  {% trans 'If you were looking for a part of the django documentation. Try searching for it below.' %}\n+  {% with 'en' as lang and '1.8' as version %}","path":"djangoproject/templates/404.html","position":20,"original_position":20,"commit_id":"7f72ba03c5159ddc691ea85dba4e6f600de5e5d7","original_commit_id":"7f72ba03c5159ddc691ea85dba4e6f600de5e5d7","user":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"body":"Is there a better way than hard-coding this values?","created_at":"2015-08-03T17:21:16Z","updated_at":"2015-08-03T17:21:16Z","html_url":"https://github.com/django/djangoproject.com/pull/506#discussion_r36107836","pull_request_url":"https://api.github.com/repos/django/djangoproject.com/pulls/506","_links":{"self":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/comments/36107836"},"html":{"href":"https://github.com/django/djangoproject.com/pull/506#discussion_r36107836"},"pull_request":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/506"}}},"pull_request":{"url":"https://api.github.com/repos/django/djangoproject.com/pulls/506","id":41489438,"html_url":"https://github.com/django/djangoproject.com/pull/506","diff_url":"https://github.com/django/djangoproject.com/pull/506.diff","patch_url":"https://github.com/django/djangoproject.com/pull/506.patch","issue_url":"https://api.github.com/repos/django/djangoproject.com/issues/506","number":506,"state":"open","locked":false,"title":"Fix #495, Add search form on the 404 page","user":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"body":"This add the search form by using the templatetag on the 404 page.","created_at":"2015-08-03T17:20:47Z","updated_at":"2015-08-03T17:21:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b7870f5a2e30f821f939bf2a50f79f41cda148c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/djangoproject.com/pulls/506/commits","review_comments_url":"https://api.github.com/repos/django/djangoproject.com/pulls/506/comments","review_comment_url":"https://api.github.com/repos/django/djangoproject.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/djangoproject.com/issues/506/comments","statuses_url":"https://api.github.com/repos/django/djangoproject.com/statuses/7f72ba03c5159ddc691ea85dba4e6f600de5e5d7","head":{"label":"relekang:issue495-search-bar-on-404-page","ref":"issue495-search-bar-on-404-page","sha":"7f72ba03c5159ddc691ea85dba4e6f600de5e5d7","user":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"repo":{"id":29235859,"name":"djangoproject.com","full_name":"relekang/djangoproject.com","owner":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/relekang/djangoproject.com","description":"Source code to djangoproject.com","fork":true,"url":"https://api.github.com/repos/relekang/djangoproject.com","forks_url":"https://api.github.com/repos/relekang/djangoproject.com/forks","keys_url":"https://api.github.com/repos/relekang/djangoproject.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relekang/djangoproject.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relekang/djangoproject.com/teams","hooks_url":"https://api.github.com/repos/relekang/djangoproject.com/hooks","issue_events_url":"https://api.github.com/repos/relekang/djangoproject.com/issues/events{/number}","events_url":"https://api.github.com/repos/relekang/djangoproject.com/events","assignees_url":"https://api.github.com/repos/relekang/djangoproject.com/assignees{/user}","branches_url":"https://api.github.com/repos/relekang/djangoproject.com/branches{/branch}","tags_url":"https://api.github.com/repos/relekang/djangoproject.com/tags","blobs_url":"https://api.github.com/repos/relekang/djangoproject.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relekang/djangoproject.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relekang/djangoproject.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/relekang/djangoproject.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relekang/djangoproject.com/statuses/{sha}","languages_url":"https://api.github.com/repos/relekang/djangoproject.com/languages","stargazers_url":"https://api.github.com/repos/relekang/djangoproject.com/stargazers","contributors_url":"https://api.github.com/repos/relekang/djangoproject.com/contributors","subscribers_url":"https://api.github.com/repos/relekang/djangoproject.com/subscribers","subscription_url":"https://api.github.com/repos/relekang/djangoproject.com/subscription","commits_url":"https://api.github.com/repos/relekang/djangoproject.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/relekang/djangoproject.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/relekang/djangoproject.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/relekang/djangoproject.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/relekang/djangoproject.com/contents/{+path}","compare_url":"https://api.github.com/repos/relekang/djangoproject.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relekang/djangoproject.com/merges","archive_url":"https://api.github.com/repos/relekang/djangoproject.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relekang/djangoproject.com/downloads","issues_url":"https://api.github.com/repos/relekang/djangoproject.com/issues{/number}","pulls_url":"https://api.github.com/repos/relekang/djangoproject.com/pulls{/number}","milestones_url":"https://api.github.com/repos/relekang/djangoproject.com/milestones{/number}","notifications_url":"https://api.github.com/repos/relekang/djangoproject.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relekang/djangoproject.com/labels{/name}","releases_url":"https://api.github.com/repos/relekang/djangoproject.com/releases{/id}","created_at":"2015-01-14T09:01:33Z","updated_at":"2015-04-06T13:56:00Z","pushed_at":"2015-08-03T17:18:46Z","git_url":"git://github.com/relekang/djangoproject.com.git","ssh_url":"git@github.com:relekang/djangoproject.com.git","clone_url":"https://github.com/relekang/djangoproject.com.git","svn_url":"https://github.com/relekang/djangoproject.com","homepage":"https://www.djangoproject.com/","size":14603,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"django:master","ref":"master","sha":"abdd66b875bc9bfde25876d3a3c561af9f2ef062","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":690903,"name":"djangoproject.com","full_name":"django/djangoproject.com","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/djangoproject.com","description":"Source code to djangoproject.com","fork":false,"url":"https://api.github.com/repos/django/djangoproject.com","forks_url":"https://api.github.com/repos/django/djangoproject.com/forks","keys_url":"https://api.github.com/repos/django/djangoproject.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/djangoproject.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/djangoproject.com/teams","hooks_url":"https://api.github.com/repos/django/djangoproject.com/hooks","issue_events_url":"https://api.github.com/repos/django/djangoproject.com/issues/events{/number}","events_url":"https://api.github.com/repos/django/djangoproject.com/events","assignees_url":"https://api.github.com/repos/django/djangoproject.com/assignees{/user}","branches_url":"https://api.github.com/repos/django/djangoproject.com/branches{/branch}","tags_url":"https://api.github.com/repos/django/djangoproject.com/tags","blobs_url":"https://api.github.com/repos/django/djangoproject.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/djangoproject.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/djangoproject.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/djangoproject.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/djangoproject.com/statuses/{sha}","languages_url":"https://api.github.com/repos/django/djangoproject.com/languages","stargazers_url":"https://api.github.com/repos/django/djangoproject.com/stargazers","contributors_url":"https://api.github.com/repos/django/djangoproject.com/contributors","subscribers_url":"https://api.github.com/repos/django/djangoproject.com/subscribers","subscription_url":"https://api.github.com/repos/django/djangoproject.com/subscription","commits_url":"https://api.github.com/repos/django/djangoproject.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/djangoproject.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/djangoproject.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/djangoproject.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/djangoproject.com/contents/{+path}","compare_url":"https://api.github.com/repos/django/djangoproject.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/djangoproject.com/merges","archive_url":"https://api.github.com/repos/django/djangoproject.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/djangoproject.com/downloads","issues_url":"https://api.github.com/repos/django/djangoproject.com/issues{/number}","pulls_url":"https://api.github.com/repos/django/djangoproject.com/pulls{/number}","milestones_url":"https://api.github.com/repos/django/djangoproject.com/milestones{/number}","notifications_url":"https://api.github.com/repos/django/djangoproject.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/djangoproject.com/labels{/name}","releases_url":"https://api.github.com/repos/django/djangoproject.com/releases{/id}","created_at":"2010-05-28T11:27:09Z","updated_at":"2015-08-01T11:50:47Z","pushed_at":"2015-08-03T17:20:48Z","git_url":"git://github.com/django/djangoproject.com.git","ssh_url":"git@github.com:django/djangoproject.com.git","clone_url":"https://github.com/django/djangoproject.com.git","svn_url":"https://github.com/django/djangoproject.com","homepage":"https://www.djangoproject.com/","size":17645,"stargazers_count":505,"watchers_count":505,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":205,"mirror_url":null,"open_issues_count":38,"forks":205,"open_issues":38,"watchers":505,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/506"},"html":{"href":"https://github.com/django/djangoproject.com/pull/506"},"issue":{"href":"https://api.github.com/repos/django/djangoproject.com/issues/506"},"comments":{"href":"https://api.github.com/repos/django/djangoproject.com/issues/506/comments"},"review_comments":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/506/comments"},"review_comment":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/506/commits"},"statuses":{"href":"https://api.github.com/repos/django/djangoproject.com/statuses/7f72ba03c5159ddc691ea85dba4e6f600de5e5d7"}}}}