{"action":"created","issue":{"url":"https://api.github.com/repos/Brobin/drf-generators/issues/14","labels_url":"https://api.github.com/repos/Brobin/drf-generators/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Brobin/drf-generators/issues/14/comments","events_url":"https://api.github.com/repos/Brobin/drf-generators/issues/14/events","html_url":"https://github.com/Brobin/drf-generators/issues/14","id":107358597,"number":14,"title":"File missing from pip install","user":{"login":"austinjp","id":7613468,"avatar_url":"https://avatars.githubusercontent.com/u/7613468?v=3","gravatar_id":"","url":"https://api.github.com/users/austinjp","html_url":"https://github.com/austinjp","followers_url":"https://api.github.com/users/austinjp/followers","following_url":"https://api.github.com/users/austinjp/following{/other_user}","gists_url":"https://api.github.com/users/austinjp/gists{/gist_id}","starred_url":"https://api.github.com/users/austinjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinjp/subscriptions","organizations_url":"https://api.github.com/users/austinjp/orgs","repos_url":"https://api.github.com/users/austinjp/repos","events_url":"https://api.github.com/users/austinjp/events{/privacy}","received_events_url":"https://api.github.com/users/austinjp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T22:12:12Z","updated_at":"2015-09-21T16:22:17Z","closed_at":"2015-09-20T16:31:59Z","body":"Hi there.\r\n\r\nThe file `<path-to-python-site-packages>/drf_generators/management/__init__.py` is missing when installing drf-generators from pip, as described at http://brobin.me/blog/2015/4/13/how-to-quickly-write-an-api-in-django\r\n\r\nThis produces the following error:\r\n\r\n```\r\n$ python manage.py generate api --format modelviewset\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/home/user/django-app/lib/python2.7/site-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/home/user/django-app/lib/python2.7/site-packages/django/core/management/__init__.py\", line 330, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/home/user/django-app/lib/python2.7/site-packages/django/core/management/__init__.py\", line 190, in fetch_command\r\n    klass = load_command_class(app_name, subcommand)\r\n  File \"/home/user/django-app/lib/python2.7/site-packages/django/core/management/__init__.py\", line 40, in load_command_class\r\n    module = import_module('%s.management.commands.%s' % (app_name, name))\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named management.commands.generate\r\n```\r\n\r\nIt appears easily fixed by:\r\n\r\n```\r\ntouch <path-to-python-site-packages>/drf_generators/management/__init__.py\r\n```\r\n\r\nAfter this, running `python manage.py generate api --format modelviewset` seems to run without any problems."},"comment":{"url":"https://api.github.com/repos/Brobin/drf-generators/issues/comments/142033125","html_url":"https://github.com/Brobin/drf-generators/issues/14#issuecomment-142033125","issue_url":"https://api.github.com/repos/Brobin/drf-generators/issues/14","id":142033125,"user":{"login":"austinjp","id":7613468,"avatar_url":"https://avatars.githubusercontent.com/u/7613468?v=3","gravatar_id":"","url":"https://api.github.com/users/austinjp","html_url":"https://github.com/austinjp","followers_url":"https://api.github.com/users/austinjp/followers","following_url":"https://api.github.com/users/austinjp/following{/other_user}","gists_url":"https://api.github.com/users/austinjp/gists{/gist_id}","starred_url":"https://api.github.com/users/austinjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinjp/subscriptions","organizations_url":"https://api.github.com/users/austinjp/orgs","repos_url":"https://api.github.com/users/austinjp/repos","events_url":"https://api.github.com/users/austinjp/events{/privacy}","received_events_url":"https://api.github.com/users/austinjp/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:22:17Z","updated_at":"2015-09-21T16:22:17Z","body":"Excellent news, thanks for being so responsive! Too me a while to debug ;)"}}