{"action":"created","comment":{"url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/comments/35284357","id":35284357,"diff_hunk":"@@ -16,12 +16,22 @@\n from django.conf.urls import include, url\n from django.contrib import admin\n from django.http import HttpResponse\n+import random\n \n+def hello (request):\n \n-def hello_world(request):\n-    return HttpResponse(\"Hello world\")\n+    name=request.GET.get(\"name\",\"default\")\n+    return HttpResponse('<b>hello</b> '+name)\n \n+def displayform (request):\n+    return HttpResponse(\"\"\"<form action=\"hello\">\n+First name:<br>\n+<input type=\"text\" name=\"name\" value=\"Noob\">\n+<br>\n+<input type=\"submit\" value=\"Submit\">\n+</form> \"\"\")\n urlpatterns = [\n-    url(r'^$', hello_world),\n+    url(r'^$', displayform),\n+    url(r'^hello$', hello),","path":"timetracker/timetracker/urls.py","position":29,"original_position":29,"commit_id":"e16063c0f135a0bbccebfc1e3ad85b0b97fb9dbf","original_commit_id":"e16063c0f135a0bbccebfc1e3ad85b0b97fb9dbf","user":{"login":"sesh","id":59980,"avatar_url":"https://avatars.githubusercontent.com/u/59980?v=3","gravatar_id":"","url":"https://api.github.com/users/sesh","html_url":"https://github.com/sesh","followers_url":"https://api.github.com/users/sesh/followers","following_url":"https://api.github.com/users/sesh/following{/other_user}","gists_url":"https://api.github.com/users/sesh/gists{/gist_id}","starred_url":"https://api.github.com/users/sesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sesh/subscriptions","organizations_url":"https://api.github.com/users/sesh/orgs","repos_url":"https://api.github.com/users/sesh/repos","events_url":"https://api.github.com/users/sesh/events{/privacy}","received_events_url":"https://api.github.com/users/sesh/received_events","type":"User","site_admin":false},"body":"We'll make mention of it in class this afternoon, but there's no need to have two views here - the form can submit to the same URL it's being served from (and we could put an `if` in there to check for the GET value).","created_at":"2015-07-23T02:00:23Z","updated_at":"2015-07-23T02:00:23Z","html_url":"https://github.com/MelbDjango/lesson-one/pull/9#discussion_r35284357","pull_request_url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/comments/35284357"},"html":{"href":"https://github.com/MelbDjango/lesson-one/pull/9#discussion_r35284357"},"pull_request":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9","id":40454265,"html_url":"https://github.com/MelbDjango/lesson-one/pull/9","diff_url":"https://github.com/MelbDjango/lesson-one/pull/9.diff","patch_url":"https://github.com/MelbDjango/lesson-one/pull/9.patch","issue_url":"https://api.github.com/repos/MelbDjango/lesson-one/issues/9","number":9,"state":"open","locked":false,"title":"Lesson one","user":{"login":"Bellana","id":13434978,"avatar_url":"https://avatars.githubusercontent.com/u/13434978?v=3","gravatar_id":"","url":"https://api.github.com/users/Bellana","html_url":"https://github.com/Bellana","followers_url":"https://api.github.com/users/Bellana/followers","following_url":"https://api.github.com/users/Bellana/following{/other_user}","gists_url":"https://api.github.com/users/Bellana/gists{/gist_id}","starred_url":"https://api.github.com/users/Bellana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bellana/subscriptions","organizations_url":"https://api.github.com/users/Bellana/orgs","repos_url":"https://api.github.com/users/Bellana/repos","events_url":"https://api.github.com/users/Bellana/events{/privacy}","received_events_url":"https://api.github.com/users/Bellana/received_events","type":"User","site_admin":false},"body":"Lesson one homework from Lorraine Barnes aka Bellana.","created_at":"2015-07-21T13:01:56Z","updated_at":"2015-07-23T02:00:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee5b9bff18c4c2095f5786986e4abefc6ce47a90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9/commits","review_comments_url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9/comments","review_comment_url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MelbDjango/lesson-one/issues/9/comments","statuses_url":"https://api.github.com/repos/MelbDjango/lesson-one/statuses/e16063c0f135a0bbccebfc1e3ad85b0b97fb9dbf","head":{"label":"Bellana:master","ref":"master","sha":"e16063c0f135a0bbccebfc1e3ad85b0b97fb9dbf","user":{"login":"Bellana","id":13434978,"avatar_url":"https://avatars.githubusercontent.com/u/13434978?v=3","gravatar_id":"","url":"https://api.github.com/users/Bellana","html_url":"https://github.com/Bellana","followers_url":"https://api.github.com/users/Bellana/followers","following_url":"https://api.github.com/users/Bellana/following{/other_user}","gists_url":"https://api.github.com/users/Bellana/gists{/gist_id}","starred_url":"https://api.github.com/users/Bellana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bellana/subscriptions","organizations_url":"https://api.github.com/users/Bellana/orgs","repos_url":"https://api.github.com/users/Bellana/repos","events_url":"https://api.github.com/users/Bellana/events{/privacy}","received_events_url":"https://api.github.com/users/Bellana/received_events","type":"User","site_admin":false},"repo":{"id":39444675,"name":"lesson-one","full_name":"Bellana/lesson-one","owner":{"login":"Bellana","id":13434978,"avatar_url":"https://avatars.githubusercontent.com/u/13434978?v=3","gravatar_id":"","url":"https://api.github.com/users/Bellana","html_url":"https://github.com/Bellana","followers_url":"https://api.github.com/users/Bellana/followers","following_url":"https://api.github.com/users/Bellana/following{/other_user}","gists_url":"https://api.github.com/users/Bellana/gists{/gist_id}","starred_url":"https://api.github.com/users/Bellana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bellana/subscriptions","organizations_url":"https://api.github.com/users/Bellana/orgs","repos_url":"https://api.github.com/users/Bellana/repos","events_url":"https://api.github.com/users/Bellana/events{/privacy}","received_events_url":"https://api.github.com/users/Bellana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bellana/lesson-one","description":"MelbDjango School Lesson One","fork":true,"url":"https://api.github.com/repos/Bellana/lesson-one","forks_url":"https://api.github.com/repos/Bellana/lesson-one/forks","keys_url":"https://api.github.com/repos/Bellana/lesson-one/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bellana/lesson-one/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bellana/lesson-one/teams","hooks_url":"https://api.github.com/repos/Bellana/lesson-one/hooks","issue_events_url":"https://api.github.com/repos/Bellana/lesson-one/issues/events{/number}","events_url":"https://api.github.com/repos/Bellana/lesson-one/events","assignees_url":"https://api.github.com/repos/Bellana/lesson-one/assignees{/user}","branches_url":"https://api.github.com/repos/Bellana/lesson-one/branches{/branch}","tags_url":"https://api.github.com/repos/Bellana/lesson-one/tags","blobs_url":"https://api.github.com/repos/Bellana/lesson-one/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bellana/lesson-one/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bellana/lesson-one/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bellana/lesson-one/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bellana/lesson-one/statuses/{sha}","languages_url":"https://api.github.com/repos/Bellana/lesson-one/languages","stargazers_url":"https://api.github.com/repos/Bellana/lesson-one/stargazers","contributors_url":"https://api.github.com/repos/Bellana/lesson-one/contributors","subscribers_url":"https://api.github.com/repos/Bellana/lesson-one/subscribers","subscription_url":"https://api.github.com/repos/Bellana/lesson-one/subscription","commits_url":"https://api.github.com/repos/Bellana/lesson-one/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bellana/lesson-one/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bellana/lesson-one/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bellana/lesson-one/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bellana/lesson-one/contents/{+path}","compare_url":"https://api.github.com/repos/Bellana/lesson-one/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bellana/lesson-one/merges","archive_url":"https://api.github.com/repos/Bellana/lesson-one/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bellana/lesson-one/downloads","issues_url":"https://api.github.com/repos/Bellana/lesson-one/issues{/number}","pulls_url":"https://api.github.com/repos/Bellana/lesson-one/pulls{/number}","milestones_url":"https://api.github.com/repos/Bellana/lesson-one/milestones{/number}","notifications_url":"https://api.github.com/repos/Bellana/lesson-one/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bellana/lesson-one/labels{/name}","releases_url":"https://api.github.com/repos/Bellana/lesson-one/releases{/id}","created_at":"2015-07-21T12:43:18Z","updated_at":"2015-07-21T12:43:19Z","pushed_at":"2015-07-21T13:00:28Z","git_url":"git://github.com/Bellana/lesson-one.git","ssh_url":"git@github.com:Bellana/lesson-one.git","clone_url":"https://github.com/Bellana/lesson-one.git","svn_url":"https://github.com/Bellana/lesson-one","homepage":null,"size":536,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"MelbDjango:master","ref":"master","sha":"52ab29d5754549175540fc871200632eba7fe1dc","user":{"login":"MelbDjango","id":5742364,"avatar_url":"https://avatars.githubusercontent.com/u/5742364?v=3","gravatar_id":"","url":"https://api.github.com/users/MelbDjango","html_url":"https://github.com/MelbDjango","followers_url":"https://api.github.com/users/MelbDjango/followers","following_url":"https://api.github.com/users/MelbDjango/following{/other_user}","gists_url":"https://api.github.com/users/MelbDjango/gists{/gist_id}","starred_url":"https://api.github.com/users/MelbDjango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MelbDjango/subscriptions","organizations_url":"https://api.github.com/users/MelbDjango/orgs","repos_url":"https://api.github.com/users/MelbDjango/repos","events_url":"https://api.github.com/users/MelbDjango/events{/privacy}","received_events_url":"https://api.github.com/users/MelbDjango/received_events","type":"Organization","site_admin":false},"repo":{"id":38986354,"name":"lesson-one","full_name":"MelbDjango/lesson-one","owner":{"login":"MelbDjango","id":5742364,"avatar_url":"https://avatars.githubusercontent.com/u/5742364?v=3","gravatar_id":"","url":"https://api.github.com/users/MelbDjango","html_url":"https://github.com/MelbDjango","followers_url":"https://api.github.com/users/MelbDjango/followers","following_url":"https://api.github.com/users/MelbDjango/following{/other_user}","gists_url":"https://api.github.com/users/MelbDjango/gists{/gist_id}","starred_url":"https://api.github.com/users/MelbDjango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MelbDjango/subscriptions","organizations_url":"https://api.github.com/users/MelbDjango/orgs","repos_url":"https://api.github.com/users/MelbDjango/repos","events_url":"https://api.github.com/users/MelbDjango/events{/privacy}","received_events_url":"https://api.github.com/users/MelbDjango/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MelbDjango/lesson-one","description":"MelbDjango School Lesson One","fork":false,"url":"https://api.github.com/repos/MelbDjango/lesson-one","forks_url":"https://api.github.com/repos/MelbDjango/lesson-one/forks","keys_url":"https://api.github.com/repos/MelbDjango/lesson-one/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MelbDjango/lesson-one/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MelbDjango/lesson-one/teams","hooks_url":"https://api.github.com/repos/MelbDjango/lesson-one/hooks","issue_events_url":"https://api.github.com/repos/MelbDjango/lesson-one/issues/events{/number}","events_url":"https://api.github.com/repos/MelbDjango/lesson-one/events","assignees_url":"https://api.github.com/repos/MelbDjango/lesson-one/assignees{/user}","branches_url":"https://api.github.com/repos/MelbDjango/lesson-one/branches{/branch}","tags_url":"https://api.github.com/repos/MelbDjango/lesson-one/tags","blobs_url":"https://api.github.com/repos/MelbDjango/lesson-one/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MelbDjango/lesson-one/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MelbDjango/lesson-one/git/refs{/sha}","trees_url":"https://api.github.com/repos/MelbDjango/lesson-one/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MelbDjango/lesson-one/statuses/{sha}","languages_url":"https://api.github.com/repos/MelbDjango/lesson-one/languages","stargazers_url":"https://api.github.com/repos/MelbDjango/lesson-one/stargazers","contributors_url":"https://api.github.com/repos/MelbDjango/lesson-one/contributors","subscribers_url":"https://api.github.com/repos/MelbDjango/lesson-one/subscribers","subscription_url":"https://api.github.com/repos/MelbDjango/lesson-one/subscription","commits_url":"https://api.github.com/repos/MelbDjango/lesson-one/commits{/sha}","git_commits_url":"https://api.github.com/repos/MelbDjango/lesson-one/git/commits{/sha}","comments_url":"https://api.github.com/repos/MelbDjango/lesson-one/comments{/number}","issue_comment_url":"https://api.github.com/repos/MelbDjango/lesson-one/issues/comments{/number}","contents_url":"https://api.github.com/repos/MelbDjango/lesson-one/contents/{+path}","compare_url":"https://api.github.com/repos/MelbDjango/lesson-one/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MelbDjango/lesson-one/merges","archive_url":"https://api.github.com/repos/MelbDjango/lesson-one/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MelbDjango/lesson-one/downloads","issues_url":"https://api.github.com/repos/MelbDjango/lesson-one/issues{/number}","pulls_url":"https://api.github.com/repos/MelbDjango/lesson-one/pulls{/number}","milestones_url":"https://api.github.com/repos/MelbDjango/lesson-one/milestones{/number}","notifications_url":"https://api.github.com/repos/MelbDjango/lesson-one/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MelbDjango/lesson-one/labels{/name}","releases_url":"https://api.github.com/repos/MelbDjango/lesson-one/releases{/id}","created_at":"2015-07-13T02:05:26Z","updated_at":"2015-07-16T07:40:37Z","pushed_at":"2015-07-22T06:54:00Z","git_url":"git://github.com/MelbDjango/lesson-one.git","ssh_url":"git@github.com:MelbDjango/lesson-one.git","clone_url":"https://github.com/MelbDjango/lesson-one.git","svn_url":"https://github.com/MelbDjango/lesson-one","homepage":null,"size":536,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":11,"forks":20,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9"},"html":{"href":"https://github.com/MelbDjango/lesson-one/pull/9"},"issue":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/issues/9"},"comments":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/MelbDjango/lesson-one/statuses/e16063c0f135a0bbccebfc1e3ad85b0b97fb9dbf"}}}}