我正在尝试使用Django 1.7,并按照说明here。不幸的是,这个过程似乎与下面的输出挂起:
[Watt] ~/Projects/proj/proj master > python proj/manage.py makemigrations
/home/me/.virtualenvs/myvenv/local/lib/python2.7/site-packages/django/contrib/comments/__init__.py:13: RemovedInDjango18Warning: django.contrib.comments is deprecated and will be removed before Django 1.8.
warnings.warn("django.contrib.comments is deprecated and will be removed before Django 1.8.", RemovedInDjango18Warning)
/home/me/.virtualenvs/myvenv/local/lib/python2.7/site-packages/mptt/managers.py:36: RemovedInDjango18Warning: `TreeManager.get_query_set` method should be renamed `get_queryset`.
class TreeManager(models.Manager):
/home/me/.virtualenvs/myvenv/local/lib/python2.7/site-packages/tagging/forms.py:12: RemovedInDjango18Warning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form TagAdminForm needs updating
class TagAdminForm(forms.ModelForm):
/home/me/.virtualenvs/myvenv/local/lib/python2.7/site-packages/mptt/admin.py:15: RemovedInDjango18Warning: `MPTTChangeList.get_query_set` method should be renamed `get_queryset`.
class MPTTChangeList(ChangeList):
我该怎么做来诊断挂起?这可能是1.7的某些依赖关系过时的函数吗?
答案 0 :(得分:1)
如this answer中所述,您应该尝试逐个运行核心Django软件包,然后是您自己的应用程序,最后是第三方依赖项。我将它们升级到最新的稳定版本 - 这可能有所帮助。
答案 1 :(得分:0)
没有任何东西悬挂。这些都是关于将在Django 1.8中删除的已弃用函数的警告。因此,您需要调查您的用法,确定新指南的内容,并在安装Django 1.8之前进行更新。目前,在Django 1.7中,你应该没问题。