gpt4 book ai didi

Django 1.7 makemigration 挂

转载 作者:行者123 更新时间:2023-12-01 15:18:49 28 4
gpt4 key购买 nike

我正在尝试使用 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 已过时的函数吗?

最佳答案

this answer 中所述,您应该尝试为核心 Django 包一个一个地运行迁移,然后是您自己的应用程序,最后是第 3 方依赖项。我也将它们升级到最新的稳定版本 - 这可能有所帮助。

关于Django 1.7 makemigration 挂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25878912/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com