How to deal with old pip requirement in Django South migrations?

限于喜欢 提交于 2019-12-06 14:33:23

Maybe a dirty solution but if you really want to get rid of your sorl-thumbnail dependency you don't have much choice :

Locate the migration file in which the field was added and replace sorl.thumbnail.fields.ImageField by something like django.db.models.fields.files.ImageField

It should work unless you have DataMigrations depending on special features of sorl-thumbnail.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!