dimanche 28 juin 2015

I am trying to use AzureStorage to for connecting azure storage with django 1.7 app .

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"))

But when I try to makemigrations I am getting :

ValueError: Cannot serialize: <myproject.storage.AzureStorage object at 0x7f85185e66d0>
There are some values Django cannot serialize into migration files.
For more, see http://ift.tt/1p5jGfR

What exactly its not able to serialize ?

Aucun commentaire:

Enregistrer un commentaire