{"action":"created","issue":{"url":"https://api.github.com/repos/goulu/pdfminer/issues/18","labels_url":"https://api.github.com/repos/goulu/pdfminer/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/goulu/pdfminer/issues/18/comments","events_url":"https://api.github.com/repos/goulu/pdfminer/issues/18/events","html_url":"https://github.com/goulu/pdfminer/issues/18","id":130594126,"number":18,"title":"Add option to ignore Django","user":{"login":"codekoala","id":48698,"avatar_url":"https://avatars.githubusercontent.com/u/48698?v=3","gravatar_id":"","url":"https://api.github.com/users/codekoala","html_url":"https://github.com/codekoala","followers_url":"https://api.github.com/users/codekoala/followers","following_url":"https://api.github.com/users/codekoala/following{/other_user}","gists_url":"https://api.github.com/users/codekoala/gists{/gist_id}","starred_url":"https://api.github.com/users/codekoala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codekoala/subscriptions","organizations_url":"https://api.github.com/users/codekoala/orgs","repos_url":"https://api.github.com/users/codekoala/repos","events_url":"https://api.github.com/users/codekoala/events{/privacy}","received_events_url":"https://api.github.com/users/codekoala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T06:52:23Z","updated_at":"2016-02-02T07:16:49Z","closed_at":null,"body":"I'm running into an issue with pdfminer trying to import settings from Django. I have my virtualenv configured to use the system site-packages so I don't have to constantly recompile packages like numpy. I also happen to have Django installed in my system site-packages directory. Even though my project doesn't need/use Django, pdfminer still tries to access django.conf.settings.PDF_MINER_IS_STRICT.\r\n\r\nIt would be nice to have a way to ignore Django if it's installed but not actually used."},"comment":{"url":"https://api.github.com/repos/goulu/pdfminer/issues/comments/178417272","html_url":"https://github.com/goulu/pdfminer/issues/18#issuecomment-178417272","issue_url":"https://api.github.com/repos/goulu/pdfminer/issues/18","id":178417272,"user":{"login":"codekoala","id":48698,"avatar_url":"https://avatars.githubusercontent.com/u/48698?v=3","gravatar_id":"","url":"https://api.github.com/users/codekoala","html_url":"https://github.com/codekoala","followers_url":"https://api.github.com/users/codekoala/followers","following_url":"https://api.github.com/users/codekoala/following{/other_user}","gists_url":"https://api.github.com/users/codekoala/gists{/gist_id}","starred_url":"https://api.github.com/users/codekoala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codekoala/subscriptions","organizations_url":"https://api.github.com/users/codekoala/orgs","repos_url":"https://api.github.com/users/codekoala/repos","events_url":"https://api.github.com/users/codekoala/events{/privacy}","received_events_url":"https://api.github.com/users/codekoala/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T07:16:49Z","updated_at":"2016-02-02T07:16:49Z","body":"I'm able to get past the error by including this hack in my project:\r\n\r\n```python\r\nimport sys\r\nsys.modules['django.conf'] = None\r\n```"}}