diff --git a/core/migrations/0003_contentblock.py b/core/migrations/0003_contentblock.py index c30ec38..ed80125 100644 --- a/core/migrations/0003_contentblock.py +++ b/core/migrations/0003_contentblock.py @@ -1,8 +1,8 @@ # Generated by Django 4.0.6 on 2022-07-13 13:55 +import django.db.models.deletion from django.conf import settings from django.db import migrations, models -import django.db.models.deletion class Migration(migrations.Migration): diff --git a/core/templates/index.html b/core/templates/index.html index 2c34759..f0c1333 100644 --- a/core/templates/index.html +++ b/core/templates/index.html @@ -2,7 +2,7 @@ {% load static %} {% block content %} -
+
{% for block in blocks %} {% if block.title is not None %}

{{ block.title }}

@@ -41,18 +41,18 @@ {% if block.image2 is not None %}
- {{ block.image2 }} +
{% endif %} {% if block.image3 is not None %}
- {{ block.image3 }} +
{% endif %}
{% endfor %} -
+ {% endblock %}