diff --git a/home/models.py b/home/models.py index 5076f57..e6c33f5 100644 --- a/home/models.py +++ b/home/models.py @@ -1,7 +1,12 @@ from django.db import models from wagtail.models import Page - +from wagtail.fields import RichTextField +from wagtail.admin.panels import FieldPanel class HomePage(Page): - pass + body = RichTextField(blank=True) + + content_panels = Page.content_panels + [ + FieldPanel('body'), + ] diff --git a/rumine/settings/dev.py b/rumine/settings/dev.py index 1c644d2..61c3c80 100644 --- a/rumine/settings/dev.py +++ b/rumine/settings/dev.py @@ -1,7 +1,7 @@ from .base import * # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "django-insecure-opj&3@hcho2s_fr2ivz$6ufbx#zph+sxm)q%j-(i8(clv7qq1l"