Merge branch 'master' of github.com:wagtail/bakerydemo

pull/2/head
Edd Baldry 2017-02-09 17:01:57 +00:00
commit 5bbe2b3006
2 zmienionych plików z 16 dodań i 1 usunięć

Wyświetl plik

@ -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': [

Wyświetl plik

@ -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>