{"action":"created","issue":{"url":"https://api.github.com/repos/mbi/django-rosetta/issues/113","labels_url":"https://api.github.com/repos/mbi/django-rosetta/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/mbi/django-rosetta/issues/113/comments","events_url":"https://api.github.com/repos/mbi/django-rosetta/issues/113/events","html_url":"https://github.com/mbi/django-rosetta/issues/113","id":42977555,"number":113,"title":"Django 1.7 - exception when using AppConfig","user":{"login":"bmihelac","id":13813,"avatar_url":"https://avatars.githubusercontent.com/u/13813?v=3","gravatar_id":"","url":"https://api.github.com/users/bmihelac","html_url":"https://github.com/bmihelac","followers_url":"https://api.github.com/users/bmihelac/followers","following_url":"https://api.github.com/users/bmihelac/following{/other_user}","gists_url":"https://api.github.com/users/bmihelac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmihelac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmihelac/subscriptions","organizations_url":"https://api.github.com/users/bmihelac/orgs","repos_url":"https://api.github.com/users/bmihelac/repos","events_url":"https://api.github.com/users/bmihelac/events{/privacy}","received_events_url":"https://api.github.com/users/bmihelac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-09-17T08:15:43Z","updated_at":"2015-03-02T20:07:45Z","closed_at":"2015-02-26T10:53:57Z","body":"Currently rosetta loops through applications in ``INSTALLED_APPS`` and try to get ``locale`` directory for each app. Django 1.7. [applications refactor](https://docs.djangoproject.com/en/dev/ref/applications/) allows to add ``AppConfig`` class instead of module. This makes rosetta raise exception:\r\n\r\n      File \".../rosetta/poutil.py\", line 83, in find_pos\r\n        apppath = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(app.__file__), 'locale')))\r\n    AttributeError: type object 'MYAPPCONFIG' has no attribute '__file__'\r\n\r\nWorkaround for this is to add this AppConfig to ``ROSETTA_EXCLUDED_APPLICATIONS``."},"comment":{"url":"https://api.github.com/repos/mbi/django-rosetta/issues/comments/76803805","html_url":"https://github.com/mbi/django-rosetta/issues/113#issuecomment-76803805","issue_url":"https://api.github.com/repos/mbi/django-rosetta/issues/113","id":76803805,"user":{"login":"mbi","id":131808,"avatar_url":"https://avatars.githubusercontent.com/u/131808?v=3","gravatar_id":"","url":"https://api.github.com/users/mbi","html_url":"https://github.com/mbi","followers_url":"https://api.github.com/users/mbi/followers","following_url":"https://api.github.com/users/mbi/following{/other_user}","gists_url":"https://api.github.com/users/mbi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbi/subscriptions","organizations_url":"https://api.github.com/users/mbi/orgs","repos_url":"https://api.github.com/users/mbi/repos","events_url":"https://api.github.com/users/mbi/events{/privacy}","received_events_url":"https://api.github.com/users/mbi/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T20:07:45Z","updated_at":"2015-03-02T20:07:45Z","body":"@burakk to get the latest HEAD:\r\n\r\n`pip uninstall django-rosetta`\r\n\r\nthen:\r\n\r\n`pip install git+https://github.com/mbi/django-rosetta.git#egg=django-rosetta-dev`\r\n\r\nThank you."}}