Hi 

I got an issue when trying to inject field featured_image into base model 
"Page"
After I made changes in settings.py, when I execute
*py manage.py makemigrations*

Django won't create migration for me, it says: *No changes detected.*

When I start the server and try to hit home page, got exception:

*django.db.utils.OperationalError: (1054, "Unknown column 
'pages_page.featured_image' in 'field list'")*

Obviously field is dynamically injected by mezzanine but since I didn't 
sync DB, it fails to fetch data.

Anyone knows what I missed here?

*#settings.py*
*EXTRA_MODEL_FIELDS = (*
*    (*
*        "mezzanine.pages.models.Page.featured_image",*
*        "mezzanine.core.fields.FileField",*
*        ("Header image",),*
*        {"blank": True,*
*         "null": True,*
*         "upload_to": "page_header",*
*         "format": "Image",*
*         "max_length": 255},*
*    ),*
*)*

Thanks in advance,
Thales

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to