{"action":"created","issue":{"url":"https://api.github.com/repos/jneight/django-db-geventpool/issues/17","labels_url":"https://api.github.com/repos/jneight/django-db-geventpool/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jneight/django-db-geventpool/issues/17/comments","events_url":"https://api.github.com/repos/jneight/django-db-geventpool/issues/17/events","html_url":"https://github.com/jneight/django-db-geventpool/issues/17","id":76196053,"number":17,"title":"Patching gevent on Django 1.7.1 causes ImproperlyConfigured error","user":{"login":"brockhaywood","id":485944,"avatar_url":"https://avatars.githubusercontent.com/u/485944?v=3","gravatar_id":"","url":"https://api.github.com/users/brockhaywood","html_url":"https://github.com/brockhaywood","followers_url":"https://api.github.com/users/brockhaywood/followers","following_url":"https://api.github.com/users/brockhaywood/following{/other_user}","gists_url":"https://api.github.com/users/brockhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/brockhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockhaywood/subscriptions","organizations_url":"https://api.github.com/users/brockhaywood/orgs","repos_url":"https://api.github.com/users/brockhaywood/repos","events_url":"https://api.github.com/users/brockhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/brockhaywood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-14T02:02:48Z","updated_at":"2015-05-14T19:10:41Z","closed_at":null,"body":"Not really sure where this issue belongs but it's very similar in result to: https://github.com/benoitc/gunicorn/issues/527 \r\n\r\nI find that when I invoke psycogreen.gevent.patch_psycopg() it results in the following errors from Django:\r\n\r\nImproperlyConfigured: The included urlconf 'urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.\r\n\r\nIt only appears to occur for the first request on the worker. Subsequent requests appear to be ok. \r\n\r\nIf I don't do the patch_psycopg, the errors go away. \r\n\r\nI'm using Django 1.7.1, Gunicorn 18.0, gevent 1.0.1 and psycogreen 1.0. I'm also using Tastypie for APIs.\r\n\r\nAny thoughts on this?"},"comment":{"url":"https://api.github.com/repos/jneight/django-db-geventpool/issues/comments/102140450","html_url":"https://github.com/jneight/django-db-geventpool/issues/17#issuecomment-102140450","issue_url":"https://api.github.com/repos/jneight/django-db-geventpool/issues/17","id":102140450,"user":{"login":"brockhaywood","id":485944,"avatar_url":"https://avatars.githubusercontent.com/u/485944?v=3","gravatar_id":"","url":"https://api.github.com/users/brockhaywood","html_url":"https://github.com/brockhaywood","followers_url":"https://api.github.com/users/brockhaywood/followers","following_url":"https://api.github.com/users/brockhaywood/following{/other_user}","gists_url":"https://api.github.com/users/brockhaywood/gists{/gist_id}","starred_url":"https://api.github.com/users/brockhaywood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockhaywood/subscriptions","organizations_url":"https://api.github.com/users/brockhaywood/orgs","repos_url":"https://api.github.com/users/brockhaywood/repos","events_url":"https://api.github.com/users/brockhaywood/events{/privacy}","received_events_url":"https://api.github.com/users/brockhaywood/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T19:10:41Z","updated_at":"2015-05-14T19:10:41Z","body":"However, when running with worker count of 3, the issue remains."}}