{"action":"created","issue":{"url":"https://api.github.com/repos/lazybird/django-carton/issues/20","labels_url":"https://api.github.com/repos/lazybird/django-carton/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/lazybird/django-carton/issues/20/comments","events_url":"https://api.github.com/repos/lazybird/django-carton/issues/20/events","html_url":"https://github.com/lazybird/django-carton/issues/20","id":53159714,"number":20,"title":"Key Error on Django 1.7","user":{"login":"briem-bixly","id":8634681,"avatar_url":"https://avatars.githubusercontent.com/u/8634681?v=3","gravatar_id":"","url":"https://api.github.com/users/briem-bixly","html_url":"https://github.com/briem-bixly","followers_url":"https://api.github.com/users/briem-bixly/followers","following_url":"https://api.github.com/users/briem-bixly/following{/other_user}","gists_url":"https://api.github.com/users/briem-bixly/gists{/gist_id}","starred_url":"https://api.github.com/users/briem-bixly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briem-bixly/subscriptions","organizations_url":"https://api.github.com/users/briem-bixly/orgs","repos_url":"https://api.github.com/users/briem-bixly/repos","events_url":"https://api.github.com/users/briem-bixly/events{/privacy}","received_events_url":"https://api.github.com/users/briem-bixly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-31T00:45:33Z","updated_at":"2015-01-07T00:59:56Z","closed_at":null,"body":"When running your example shopping cart app in Django 1.7, a KeyError is thrown in {% get_cart as cart %}.\r\n\r\n'request' at line 22 in get_cart"},"comment":{"url":"https://api.github.com/repos/lazybird/django-carton/issues/comments/68962817","html_url":"https://github.com/lazybird/django-carton/issues/20#issuecomment-68962817","issue_url":"https://api.github.com/repos/lazybird/django-carton/issues/20","id":68962817,"user":{"login":"briem-bixly","id":8634681,"avatar_url":"https://avatars.githubusercontent.com/u/8634681?v=3","gravatar_id":"","url":"https://api.github.com/users/briem-bixly","html_url":"https://github.com/briem-bixly","followers_url":"https://api.github.com/users/briem-bixly/followers","following_url":"https://api.github.com/users/briem-bixly/following{/other_user}","gists_url":"https://api.github.com/users/briem-bixly/gists{/gist_id}","starred_url":"https://api.github.com/users/briem-bixly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briem-bixly/subscriptions","organizations_url":"https://api.github.com/users/briem-bixly/orgs","repos_url":"https://api.github.com/users/briem-bixly/repos","events_url":"https://api.github.com/users/briem-bixly/events{/privacy}","received_events_url":"https://api.github.com/users/briem-bixly/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T00:59:56Z","updated_at":"2015-01-07T00:59:56Z","body":"The way I got around this was adding a custom context processor that returns the request.\r\n\r\nlike so: \r\nTEMPLATE_CONTEXT_PROCESSORS = (\r\n    \"django.contrib.auth.context_processors.auth\",\r\n    \"django.core.context_processors.debug\",\r\n    \"django.core.context_processors.i18n\",\r\n    \"django.core.context_processors.media\",\r\n    \"django.core.context_processors.static\",\r\n    \"django.core.context_processors.tz\",\r\n    \"django.contrib.messages.context_processors.messages\",\r\n    \"saas.context_processors.get_request\"\r\n)\r\ndef get_request(request):\r\n    return {'request': request}"}}