草庐IT

RemovedInDjango

全部标签

mysql - 将 1.7.4 升级到 django 1.8 south.db.mysql 错误,未使用 South

尝试将django从1.7.4升级到1.8;然而,当我运行服务器时,我现在得到您的数据库没有South数据库模块“south.db.mysql”。请选择受支持的数据库,检查SOUTH_DATABASE_ADAPTER[S]设置,或从INSTALLED_APPS中删除South。错误消息,它不起作用。我的INSTALLED_APPS中没有“South”。并且不记得曾经在这个项目中使用过南方。我所有的模型实际上都是手动管理的。我该如何解决这个问题?谢谢[编辑]正如您将看到的,我有很多“升级”修复工作要做,但仍然不明白为什么它在“南方”失败,因为我不使用它。INSTALLED_APPS=('

python - RemovedInDjango18 警告 : Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated

我正在做一个Django项目,当我尝试访问127.0.0.1:8000/articles/create时,我的Ubuntu终端出现以下错误:/home/(myname)/django_test/article/forms.py:4:RemovedInDjango18Warning:CreatingaModelFormwithouteitherthe'fields'attributeorthe'exclude'attributeisdeprecated-formArticleFormneedsupdatingclassArticleForm(forms.ModelForm):另外,我在访

python - RemovedInDjango18 警告 : Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated

我正在做一个Django项目,当我尝试访问127.0.0.1:8000/articles/create时,我的Ubuntu终端出现以下错误:/home/(myname)/django_test/article/forms.py:4:RemovedInDjango18Warning:CreatingaModelFormwithouteitherthe'fields'attributeorthe'exclude'attributeisdeprecated-formArticleFormneedsupdatingclassArticleForm(forms.ModelForm):另外,我在访

python - 导入错误 : cannot import name RemovedInDjango19Warning

我使用的是Django1.8.7,我刚刚通过克隆存储库并在终端上我的webapp的应用程序目录中运行pipinstall安装了Django-Allauth。现在,当我运行manage.pymigrate时,出现此错误:➜srcgit:(master)✗pythonmanage.pymigrateTraceback(mostrecentcalllast):File"manage.py",line8,infromdjango.core.managementimportexecute_from_command_lineFile"/Library/Python/2.7/site-package