{"action":"closed","issue":{"url":"https://api.github.com/repos/edubecks/vaidecaronaorg/issues/9","repository_url":"https://api.github.com/repos/edubecks/vaidecaronaorg","labels_url":"https://api.github.com/repos/edubecks/vaidecaronaorg/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/edubecks/vaidecaronaorg/issues/9/comments","events_url":"https://api.github.com/repos/edubecks/vaidecaronaorg/issues/9/events","html_url":"https://github.com/edubecks/vaidecaronaorg/issues/9","id":23187389,"number":9,"title":"Use of template context processors [enhancement]","user":{"login":"rguzman5115","id":1402068,"avatar_url":"https://avatars.githubusercontent.com/u/1402068?v=3","gravatar_id":"","url":"https://api.github.com/users/rguzman5115","html_url":"https://github.com/rguzman5115","followers_url":"https://api.github.com/users/rguzman5115/followers","following_url":"https://api.github.com/users/rguzman5115/following{/other_user}","gists_url":"https://api.github.com/users/rguzman5115/gists{/gist_id}","starred_url":"https://api.github.com/users/rguzman5115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rguzman5115/subscriptions","organizations_url":"https://api.github.com/users/rguzman5115/orgs","repos_url":"https://api.github.com/users/rguzman5115/repos","events_url":"https://api.github.com/users/rguzman5115/events{/privacy}","received_events_url":"https://api.github.com/users/rguzman5115/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2013-11-23T13:52:08Z","updated_at":"2016-05-06T21:04:28Z","closed_at":"2016-05-06T21:04:28Z","body":"Use of template context processors instead of variables in views.py. my_render only adds variable context for each view and does nothing but to show them in templates, that is the purpose of django template context processors.\r\n\"Site title\" and \"Version\" could be in settings.py file.\r\n\r\n```\r\ndef my_render(request, template, data):\r\n    ## default variables\r\n    data.update({\r\n        'title_site': 'Vai de Carona',\r\n        'version': '2013.11.22',\r\n    })\r\n    return render(request, template, data)\r\n```"}}