{"action":"created","issue":{"url":"https://api.github.com/repos/hzdg/django-ecstatic/issues/17","repository_url":"https://api.github.com/repos/hzdg/django-ecstatic","labels_url":"https://api.github.com/repos/hzdg/django-ecstatic/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/hzdg/django-ecstatic/issues/17/comments","events_url":"https://api.github.com/repos/hzdg/django-ecstatic/issues/17/events","html_url":"https://github.com/hzdg/django-ecstatic/pull/17","id":134165082,"number":17,"title":"Use new cache accessor","user":{"login":"naegelyd","id":3911912,"avatar_url":"https://avatars.githubusercontent.com/u/3911912?v=3","gravatar_id":"","url":"https://api.github.com/users/naegelyd","html_url":"https://github.com/naegelyd","followers_url":"https://api.github.com/users/naegelyd/followers","following_url":"https://api.github.com/users/naegelyd/following{/other_user}","gists_url":"https://api.github.com/users/naegelyd/gists{/gist_id}","starred_url":"https://api.github.com/users/naegelyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naegelyd/subscriptions","organizations_url":"https://api.github.com/users/naegelyd/orgs","repos_url":"https://api.github.com/users/naegelyd/repos","events_url":"https://api.github.com/users/naegelyd/events{/privacy}","received_events_url":"https://api.github.com/users/naegelyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T03:13:51Z","updated_at":"2016-02-26T05:45:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hzdg/django-ecstatic/pulls/17","html_url":"https://github.com/hzdg/django-ecstatic/pull/17","diff_url":"https://github.com/hzdg/django-ecstatic/pull/17.diff","patch_url":"https://github.com/hzdg/django-ecstatic/pull/17.patch"},"body":"@matthewwithanm This PR conditionally uses Django's [new cache accessor](https://docs.djangoproject.com/en/1.7/topics/cache/#django.core.cache.caches). As of Django 1.7, the `get_cache` method was [deprecated in favor of](https://docs.djangoproject.com/en/1.9/releases/1.7/#cache) `caches`. This PR maintains compatibility for Django <= 1.6 by testing the Django version and using `get_cache` when the Django version <= 1.6.\r\n\r\nAlso, I noted some pretty standard files missing from `.gitignore` so I added them as well.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hzdg/django-ecstatic/issues/comments/189123006","html_url":"https://github.com/hzdg/django-ecstatic/pull/17#issuecomment-189123006","issue_url":"https://api.github.com/repos/hzdg/django-ecstatic/issues/17","id":189123006,"user":{"login":"matthewwithanm","id":126263,"avatar_url":"https://avatars.githubusercontent.com/u/126263?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewwithanm","html_url":"https://github.com/matthewwithanm","followers_url":"https://api.github.com/users/matthewwithanm/followers","following_url":"https://api.github.com/users/matthewwithanm/following{/other_user}","gists_url":"https://api.github.com/users/matthewwithanm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewwithanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewwithanm/subscriptions","organizations_url":"https://api.github.com/users/matthewwithanm/orgs","repos_url":"https://api.github.com/users/matthewwithanm/repos","events_url":"https://api.github.com/users/matthewwithanm/events{/privacy}","received_events_url":"https://api.github.com/users/matthewwithanm/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T05:45:18Z","updated_at":"2016-02-26T05:45:18Z","body":"Sorry @naegelyd! This looks good to me but I don't work at HZ anymore 😢 @kenzic would probably be the best person to look at this. And if you're using the library a bunch, he might consider adding you as a contrib?"}}