{"action":"created","issue":{"url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/273","labels_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/273/comments","events_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/273/events","html_url":"https://github.com/sshwsfc/django-xadmin/issues/273","id":103853084,"number":273,"title":"ImportError: No module named related demo运行不起来","user":{"login":"wynnfynn","id":8787482,"avatar_url":"https://avatars.githubusercontent.com/u/8787482?v=3","gravatar_id":"","url":"https://api.github.com/users/wynnfynn","html_url":"https://github.com/wynnfynn","followers_url":"https://api.github.com/users/wynnfynn/followers","following_url":"https://api.github.com/users/wynnfynn/following{/other_user}","gists_url":"https://api.github.com/users/wynnfynn/gists{/gist_id}","starred_url":"https://api.github.com/users/wynnfynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wynnfynn/subscriptions","organizations_url":"https://api.github.com/users/wynnfynn/orgs","repos_url":"https://api.github.com/users/wynnfynn/repos","events_url":"https://api.github.com/users/wynnfynn/events{/privacy}","received_events_url":"https://api.github.com/users/wynnfynn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-29T14:01:33Z","updated_at":"2015-09-21T05:09:43Z","closed_at":null,"body":"Hi, \r\n         可以帮我看看, 这个related为什么已经安装还是找不到, 我把django.db.models.related 更改为django.db.models.fields.related 也不能解决问题\r\n(ve)[root@localhost demo_app]# pip install django-related\r\nDownloading/unpacking django-related\r\n  Downloading django-related-0.0.6.tar.gz\r\n  Running setup.py egg_info for package django-related\r\n    \r\nInstalling collected packages: django-related\r\n  Running setup.py install for django-related\r\n    \r\nSuccessfully installed django-related\r\nCleaning up...\r\n(ve)[root@localhost demo_app]# python manage.py runserver 0.0.0.0:9000\r\n/root/django-xadmin-master/demo_app/../xadmin/__init__.py:18: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.\r\n  from django.utils.importlib import import_module\r\n\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 13, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/root/django-xadmin-master/ve/lib/python2.7/site-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/root/django-xadmin-master/ve/lib/python2.7/site-packages/django/core/management/__init__.py\", line 312, in execute\r\n    django.setup()\r\n  File \"/root/django-xadmin-master/ve/lib/python2.7/site-packages/django/__init__.py\", line 18, in setup\r\n    apps.populate(settings.INSTALLED_APPS)\r\n  File \"/root/django-xadmin-master/ve/lib/python2.7/site-packages/django/apps/registry.py\", line 115, in populate\r\n    app_config.ready()\r\n  File \"/root/django-xadmin-master/demo_app/../xadmin/apps.py\", line 13, in ready\r\n    self.module.autodiscover()\r\n  File \"/root/django-xadmin-master/demo_app/../xadmin/__init__.py\", line 28, in autodiscover\r\n    from xadmin.views import register_builtin_views\r\n  File \"/root/django-xadmin-master/demo_app/../xadmin/views/__init__.py\", line 2, in <module>\r\n    from base import BaseAdminPlugin, BaseAdminView, CommAdminView, ModelAdminView, filter_hook, csrf_protect_m, BaseAdminObject\r\n  File \"/root/django-xadmin-master/demo_app/../xadmin/views/base.py\", line 30, in <module>\r\n    from xadmin.util import static, json, vendor, sortkeypicker\r\n  File \"/root/django-xadmin-master/demo_app/../xadmin/util.py\", line 5, in <module>\r\n    from django.db.models.related import RelatedObject\r\nImportError: No module named related\r\n(ve)[root@localhost demo_app]# "},"comment":{"url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/comments/141879307","html_url":"https://github.com/sshwsfc/django-xadmin/issues/273#issuecomment-141879307","issue_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/273","id":141879307,"user":{"login":"jshpng","id":13727004,"avatar_url":"https://avatars.githubusercontent.com/u/13727004?v=3","gravatar_id":"","url":"https://api.github.com/users/jshpng","html_url":"https://github.com/jshpng","followers_url":"https://api.github.com/users/jshpng/followers","following_url":"https://api.github.com/users/jshpng/following{/other_user}","gists_url":"https://api.github.com/users/jshpng/gists{/gist_id}","starred_url":"https://api.github.com/users/jshpng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshpng/subscriptions","organizations_url":"https://api.github.com/users/jshpng/orgs","repos_url":"https://api.github.com/users/jshpng/repos","events_url":"https://api.github.com/users/jshpng/events{/privacy}","received_events_url":"https://api.github.com/users/jshpng/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T05:09:43Z","updated_at":"2015-09-21T05:09:43Z","body":"我也遇到同样问题，Django降到1.7就好了"}}