{"action":"opened","number":1570,"pull_request":{"url":"https://api.github.com/repos/gnowledge/gstudio/pulls/1570","id":84091826,"html_url":"https://github.com/gnowledge/gstudio/pull/1570","diff_url":"https://github.com/gnowledge/gstudio/pull/1570.diff","patch_url":"https://github.com/gnowledge/gstudio/pull/1570.patch","issue_url":"https://api.github.com/repos/gnowledge/gstudio/issues/1570","number":1570,"state":"open","locked":false,"title":"Added a profiler for any url.","user":{"login":"kedar2a","id":3327363,"avatar_url":"https://avatars.githubusercontent.com/u/3327363?v=3","gravatar_id":"","url":"https://api.github.com/users/kedar2a","html_url":"https://github.com/kedar2a","followers_url":"https://api.github.com/users/kedar2a/followers","following_url":"https://api.github.com/users/kedar2a/following{/other_user}","gists_url":"https://api.github.com/users/kedar2a/gists{/gist_id}","starred_url":"https://api.github.com/users/kedar2a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedar2a/subscriptions","organizations_url":"https://api.github.com/users/kedar2a/orgs","repos_url":"https://api.github.com/users/kedar2a/repos","events_url":"https://api.github.com/users/kedar2a/events{/privacy}","received_events_url":"https://api.github.com/users/kedar2a/received_events","type":"User","site_admin":false},"body":"- Tried many tools for profiling then found lightweight solution of `middleware`.\r\n- Added django profile middleware.\r\n- Entry for the same is added in `settings.MIDDLEWARE_CLASSES` but commented. Which we can uncomment or add in local_settings to avoid overhead in production servers.\r\n- Credit: [middleware gist](https://gist.github.com/Miserlou/3649773#file-middleware-py) by @miserlou \r\n\r\n--\r\n\r\n**How to use**:\r\n- Uncomment `'gnowsys_ndf.ndf.middleware.ProfileMiddleware.ProfileMiddleware'` from middleware **OR** add following in `local_settings.py`: \r\n<PRE>`from gnowsys_ndf.settings import MIDDLEWARE_CLASSES\r\nMIDDLEWARE_CLASSES += ('gnowsys_ndf.ndf.middleware.ProfileMiddleware.ProfileMiddleware',)` </PRE>\r\n- Just add: **`?prof`** at end of any url.","created_at":"2016-09-06T09:49:41Z","updated_at":"2016-09-06T09:49:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd957fb4e1c09eb59a6e90e43c497b8fa37cba17","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gnowledge/gstudio/pulls/1570/commits","review_comments_url":"https://api.github.com/repos/gnowledge/gstudio/pulls/1570/comments","review_comment_url":"https://api.github.com/repos/gnowledge/gstudio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gnowledge/gstudio/issues/1570/comments","statuses_url":"https://api.github.com/repos/gnowledge/gstudio/statuses/a894b8e000e4a2f5199708bf27ff287307874b64","head":{"label":"kedar2a:master","ref":"master","sha":"a894b8e000e4a2f5199708bf27ff287307874b64","user":{"login":"kedar2a","id":3327363,"avatar_url":"https://avatars.githubusercontent.com/u/3327363?v=3","gravatar_id":"","url":"https://api.github.com/users/kedar2a","html_url":"https://github.com/kedar2a","followers_url":"https://api.github.com/users/kedar2a/followers","following_url":"https://api.github.com/users/kedar2a/following{/other_user}","gists_url":"https://api.github.com/users/kedar2a/gists{/gist_id}","starred_url":"https://api.github.com/users/kedar2a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedar2a/subscriptions","organizations_url":"https://api.github.com/users/kedar2a/orgs","repos_url":"https://api.github.com/users/kedar2a/repos","events_url":"https://api.github.com/users/kedar2a/events{/privacy}","received_events_url":"https://api.github.com/users/kedar2a/received_events","type":"User","site_admin":false},"repo":{"id":13086408,"name":"gstudio","full_name":"kedar2a/gstudio","owner":{"login":"kedar2a","id":3327363,"avatar_url":"https://avatars.githubusercontent.com/u/3327363?v=3","gravatar_id":"","url":"https://api.github.com/users/kedar2a","html_url":"https://github.com/kedar2a","followers_url":"https://api.github.com/users/kedar2a/followers","following_url":"https://api.github.com/users/kedar2a/following{/other_user}","gists_url":"https://api.github.com/users/kedar2a/gists{/gist_id}","starred_url":"https://api.github.com/users/kedar2a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedar2a/subscriptions","organizations_url":"https://api.github.com/users/kedar2a/orgs","repos_url":"https://api.github.com/users/kedar2a/repos","events_url":"https://api.github.com/users/kedar2a/events{/privacy}","received_events_url":"https://api.github.com/users/kedar2a/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kedar2a/gstudio","description":"gstudio is a node description framework (NDF) to create knowledge networks.  We are recreating gnowsys-studio with mongodb as storage.","fork":true,"url":"https://api.github.com/repos/kedar2a/gstudio","forks_url":"https://api.github.com/repos/kedar2a/gstudio/forks","keys_url":"https://api.github.com/repos/kedar2a/gstudio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kedar2a/gstudio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kedar2a/gstudio/teams","hooks_url":"https://api.github.com/repos/kedar2a/gstudio/hooks","issue_events_url":"https://api.github.com/repos/kedar2a/gstudio/issues/events{/number}","events_url":"https://api.github.com/repos/kedar2a/gstudio/events","assignees_url":"https://api.github.com/repos/kedar2a/gstudio/assignees{/user}","branches_url":"https://api.github.com/repos/kedar2a/gstudio/branches{/branch}","tags_url":"https://api.github.com/repos/kedar2a/gstudio/tags","blobs_url":"https://api.github.com/repos/kedar2a/gstudio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kedar2a/gstudio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kedar2a/gstudio/git/refs{/sha}","trees_url":"https://api.github.com/repos/kedar2a/gstudio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kedar2a/gstudio/statuses/{sha}","languages_url":"https://api.github.com/repos/kedar2a/gstudio/languages","stargazers_url":"https://api.github.com/repos/kedar2a/gstudio/stargazers","contributors_url":"https://api.github.com/repos/kedar2a/gstudio/contributors","subscribers_url":"https://api.github.com/repos/kedar2a/gstudio/subscribers","subscription_url":"https://api.github.com/repos/kedar2a/gstudio/subscription","commits_url":"https://api.github.com/repos/kedar2a/gstudio/commits{/sha}","git_commits_url":"https://api.github.com/repos/kedar2a/gstudio/git/commits{/sha}","comments_url":"https://api.github.com/repos/kedar2a/gstudio/comments{/number}","issue_comment_url":"https://api.github.com/repos/kedar2a/gstudio/issues/comments{/number}","contents_url":"https://api.github.com/repos/kedar2a/gstudio/contents/{+path}","compare_url":"https://api.github.com/repos/kedar2a/gstudio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kedar2a/gstudio/merges","archive_url":"https://api.github.com/repos/kedar2a/gstudio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kedar2a/gstudio/downloads","issues_url":"https://api.github.com/repos/kedar2a/gstudio/issues{/number}","pulls_url":"https://api.github.com/repos/kedar2a/gstudio/pulls{/number}","milestones_url":"https://api.github.com/repos/kedar2a/gstudio/milestones{/number}","notifications_url":"https://api.github.com/repos/kedar2a/gstudio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kedar2a/gstudio/labels{/name}","releases_url":"https://api.github.com/repos/kedar2a/gstudio/releases{/id}","deployments_url":"https://api.github.com/repos/kedar2a/gstudio/deployments","created_at":"2013-09-25T06:50:38Z","updated_at":"2016-04-20T09:07:58Z","pushed_at":"2016-09-06T09:25:18Z","git_url":"git://github.com/kedar2a/gstudio.git","ssh_url":"git@github.com:kedar2a/gstudio.git","clone_url":"https://github.com/kedar2a/gstudio.git","svn_url":"https://github.com/kedar2a/gstudio","homepage":null,"size":84692,"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":"mongokit"}},"base":{"label":"gnowledge:master","ref":"master","sha":"efa8ea20dfa2154445dac2b7ec0fe0a8642239a5","user":{"login":"gnowledge","id":3611360,"avatar_url":"https://avatars.githubusercontent.com/u/3611360?v=3","gravatar_id":"","url":"https://api.github.com/users/gnowledge","html_url":"https://github.com/gnowledge","followers_url":"https://api.github.com/users/gnowledge/followers","following_url":"https://api.github.com/users/gnowledge/following{/other_user}","gists_url":"https://api.github.com/users/gnowledge/gists{/gist_id}","starred_url":"https://api.github.com/users/gnowledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnowledge/subscriptions","organizations_url":"https://api.github.com/users/gnowledge/orgs","repos_url":"https://api.github.com/users/gnowledge/repos","events_url":"https://api.github.com/users/gnowledge/events{/privacy}","received_events_url":"https://api.github.com/users/gnowledge/received_events","type":"Organization","site_admin":false},"repo":{"id":11564701,"name":"gstudio","full_name":"gnowledge/gstudio","owner":{"login":"gnowledge","id":3611360,"avatar_url":"https://avatars.githubusercontent.com/u/3611360?v=3","gravatar_id":"","url":"https://api.github.com/users/gnowledge","html_url":"https://github.com/gnowledge","followers_url":"https://api.github.com/users/gnowledge/followers","following_url":"https://api.github.com/users/gnowledge/following{/other_user}","gists_url":"https://api.github.com/users/gnowledge/gists{/gist_id}","starred_url":"https://api.github.com/users/gnowledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnowledge/subscriptions","organizations_url":"https://api.github.com/users/gnowledge/orgs","repos_url":"https://api.github.com/users/gnowledge/repos","events_url":"https://api.github.com/users/gnowledge/events{/privacy}","received_events_url":"https://api.github.com/users/gnowledge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gnowledge/gstudio","description":"gstudio is a node description framework (NDF) to create knowledge networks.  We are recreating gnowsys-studio with mongodb as storage.  This scaled up version with support for multiple projects will be used for the several OER and open courseware projects.","fork":false,"url":"https://api.github.com/repos/gnowledge/gstudio","forks_url":"https://api.github.com/repos/gnowledge/gstudio/forks","keys_url":"https://api.github.com/repos/gnowledge/gstudio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gnowledge/gstudio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gnowledge/gstudio/teams","hooks_url":"https://api.github.com/repos/gnowledge/gstudio/hooks","issue_events_url":"https://api.github.com/repos/gnowledge/gstudio/issues/events{/number}","events_url":"https://api.github.com/repos/gnowledge/gstudio/events","assignees_url":"https://api.github.com/repos/gnowledge/gstudio/assignees{/user}","branches_url":"https://api.github.com/repos/gnowledge/gstudio/branches{/branch}","tags_url":"https://api.github.com/repos/gnowledge/gstudio/tags","blobs_url":"https://api.github.com/repos/gnowledge/gstudio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gnowledge/gstudio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gnowledge/gstudio/git/refs{/sha}","trees_url":"https://api.github.com/repos/gnowledge/gstudio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gnowledge/gstudio/statuses/{sha}","languages_url":"https://api.github.com/repos/gnowledge/gstudio/languages","stargazers_url":"https://api.github.com/repos/gnowledge/gstudio/stargazers","contributors_url":"https://api.github.com/repos/gnowledge/gstudio/contributors","subscribers_url":"https://api.github.com/repos/gnowledge/gstudio/subscribers","subscription_url":"https://api.github.com/repos/gnowledge/gstudio/subscription","commits_url":"https://api.github.com/repos/gnowledge/gstudio/commits{/sha}","git_commits_url":"https://api.github.com/repos/gnowledge/gstudio/git/commits{/sha}","comments_url":"https://api.github.com/repos/gnowledge/gstudio/comments{/number}","issue_comment_url":"https://api.github.com/repos/gnowledge/gstudio/issues/comments{/number}","contents_url":"https://api.github.com/repos/gnowledge/gstudio/contents/{+path}","compare_url":"https://api.github.com/repos/gnowledge/gstudio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gnowledge/gstudio/merges","archive_url":"https://api.github.com/repos/gnowledge/gstudio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gnowledge/gstudio/downloads","issues_url":"https://api.github.com/repos/gnowledge/gstudio/issues{/number}","pulls_url":"https://api.github.com/repos/gnowledge/gstudio/pulls{/number}","milestones_url":"https://api.github.com/repos/gnowledge/gstudio/milestones{/number}","notifications_url":"https://api.github.com/repos/gnowledge/gstudio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gnowledge/gstudio/labels{/name}","releases_url":"https://api.github.com/repos/gnowledge/gstudio/releases{/id}","deployments_url":"https://api.github.com/repos/gnowledge/gstudio/deployments","created_at":"2013-07-21T17:01:10Z","updated_at":"2016-07-08T12:40:02Z","pushed_at":"2016-09-06T09:49:41Z","git_url":"git://github.com/gnowledge/gstudio.git","ssh_url":"git@github.com:gnowledge/gstudio.git","clone_url":"https://github.com/gnowledge/gstudio.git","svn_url":"https://github.com/gnowledge/gstudio","homepage":"","size":97035,"stargazers_count":16,"watchers_count":16,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":50,"forks":94,"open_issues":50,"watchers":16,"default_branch":"mongokit"}},"_links":{"self":{"href":"https://api.github.com/repos/gnowledge/gstudio/pulls/1570"},"html":{"href":"https://github.com/gnowledge/gstudio/pull/1570"},"issue":{"href":"https://api.github.com/repos/gnowledge/gstudio/issues/1570"},"comments":{"href":"https://api.github.com/repos/gnowledge/gstudio/issues/1570/comments"},"review_comments":{"href":"https://api.github.com/repos/gnowledge/gstudio/pulls/1570/comments"},"review_comment":{"href":"https://api.github.com/repos/gnowledge/gstudio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gnowledge/gstudio/pulls/1570/commits"},"statuses":{"href":"https://api.github.com/repos/gnowledge/gstudio/statuses/a894b8e000e4a2f5199708bf27ff287307874b64"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":116,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"kedar2a"}}