Python ValueError:无法序列化:<;位于0x7f85185e66d0处的myproject.storage.AzureStorage对象>;

Python ValueError:无法序列化:<;位于0x7f85185e66d0处的myproject.storage.AzureStorage对象>;,python,django,azure,azure-storage,azure-storage-blobs,Python,Django,Azure,Azure Storage,Azure Storage Blobs,我正在尝试使用来连接azure存储和django 1.7应用程序 models.py from django.db import models from myproject.storage import AzureStorage class MyModel(models.Model): my_file = models.FileField(upload_to="files", storage=AzureStorage(container="media")) my_image =

我正在尝试使用来连接azure存储和django 1.7应用程序

models.py

from django.db import models
from myproject.storage import AzureStorage

class MyModel(models.Model):
    my_file = models.FileField(upload_to="files", storage=AzureStorage(container="media"))
    my_image = models.ImageField(upload_to="images", storage=AzureStorage(container="media"))
但当我尝试进行迁移时,我得到了:

ValueError: Cannot serialize: <myproject.storage.AzureStorage object at 0x7f85185e66d0>
There are some values Django cannot serialize into migration files.
For more, see https://docs.djangoproject.com/en/dev/topics/migrations/#migration-serializing
ValueError:无法序列化:
有些值Django无法序列化到迁移文件中。
有关更多信息,请参阅https://docs.djangoproject.com/en/dev/topics/migrations/#migration-连载

到底什么是无法序列化的?

您是否检查了升级到Django 1.7的解决方案。获取错误:无法序列化:是否已检查升级到Django 1.7的解决方案。获取错误:无法序列化:可能是修改时间。。。尝试调试它。。。它只有64行代码,两年内没有人更新:DAdding@Deconstructable to AzureStorage类修复了这个错误,可能是修改时间。。。尝试调试它。。。两年内没有人更新的代码只有64行:DAdding@Deconstructable to AzureStorage类修复了这个错误