Add HomePage

This commit is contained in:
itqop 2024-03-17 19:01:04 +03:00
parent 842e0ba76b
commit 384460a046
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,12 @@
from django.db import models from django.db import models
from wagtail.models import Page from wagtail.models import Page
from wagtail.fields import RichTextField
from wagtail.admin.panels import FieldPanel
class HomePage(Page): class HomePage(Page):
pass body = RichTextField(blank=True)
content_panels = Page.content_panels + [
FieldPanel('body'),
]

View File

@ -1,7 +1,7 @@
from .base import * from .base import *
# SECURITY WARNING: don't run with debug turned on in production! # 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! # 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" SECRET_KEY = "django-insecure-opj&3@hcho2s_fr2ivz$6ufbx#zph+sxm)q%j-(i8(clv7qq1l"