[mezzanine-users] Access FileField in a Page model

2015-11-20 Thread Nkansah Rexford
I have a field: class HomePage(Page): featured_image = FileField(verbose_name=_("Featured Image"), upload_to=upload_to("main.HomePage.featured_image", "homepage"), format="Image", max_length=255, null=

Re: [mezzanine-users] Access FileField in a Page model

2015-11-20 Thread Ken Bolton
Hi, I think you want to read http://mezzanine.jupo.org/docs/frequently-asked-questions.html#why-isn-t-the-homepage-a-page-object-i-can-edit-via-the-admin . The first thing is to install Django Debug Toolbar. It will help you see the context being sent to the templates. You will be able to inspect

Re: [mezzanine-users] Access FileField in a Page model

2015-11-20 Thread Nkansah Rexford
I can access 'page.homepage.heading' in the same template. The page.homepage is available in the context, however, just the .featured_image is empty. And checking from the db, that field doesn't exist, but the image shows up in Admin. On Friday, November 20, 2015 at 9:19:43 PM UTC, Kenneth Bo