Hey guys,I've recently started playing around with Cartridge and Mezzanine. I am trying to figure out which approach I should take in implementing Selected Featured Products home page.
I'd like to have a home page with selected (admin selected) to display them in a special view. I started by creating a FeaturedProduct(models.Model) with (product(fk), featured_in_box, image, overlay_text). Then created FeaturedProductAdmin(admin.ModelAdmin).
and then I create my own / url view handler that query for these featured products and render them in a specific view.
t = loader.get_template('shop/featured.html')
return HttpResponse(t.render(c))
I get the feeling that I am tackling this in a wrong way. The STATIC_URL template variable doesn't seem to be loading in the template hence all the static content is not being displayed.
I've tried to extend Mezzanine Page model and PageAdmin, but in the Admin interface the Product dropdown generated from the foreign key in FeaturedProduct no longer appears and I am not sure why.
Any leads and tips on best way to tackle this? Any sample code for people who have done this before would be greatly helpful.
Thank you so much!