awesto / django-shop

A Django based shop system
http://www.django-shop.org
BSD 3-Clause "New" or "Revised" License
3.18k stars 1.04k forks source link

rendering product.placeholder #746

Open helvrud opened 5 years ago

helvrud commented 5 years ago

I set up a shop acoording to tutorial https://django-shop.readthedocs.io/en/latest/ Then I copied the model SmartPhoneModel to ScooterModel and changed the set of fields. The new model is different from the previous only by the set of fields. The problem is that newly created model is not rendered in product_detail.html

.... {% render_placeholder product.placeholder %}{% render_placeholder product.placeholder as product_details %}

        {% if not product_details %}
        <p class="lead">Edit this page, then switch into <em>Structure</em> mode and add plugins to placeholder <code> {{ product.placeholder.slot }} </code>.</p>
        {% endif %}

....

So as the result we see the emty page with text "Edit this page, then switch into Structure mode and add plugins to placeholder"

jrief commented 5 years ago

difficult to say, since I don't know anything about the remaining context.