@@ -82,7 +82,7 @@ ROOT_URLCONF = 'bakerydemo.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
+ 'DIRS': ['bakerydemo/templates', ],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@@ -0,0 +1,15 @@
+{% load wagtailcore_tags %}
+<html>
+ <head>
+ <title>{{ page.title }}</title>
+ </head>
+ <body>
+ <h1>{{ page.title }}</h1>
+ {{ page.intro|richtext }}
+ <form action="{% pageurl page %}" method="POST">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <input type="submit">
+ </form>
+ </body>
+</html>