From 5ab4d14187ed4c776c9ff6ae6c01ea5df4d447b6 Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Mon, 21 Jul 2014 15:39:26 +0300 Subject: [PATCH] templates --- project/settings.py | 2 +- project/templates/pages/index.html | 2 +- project/templates/pages/inner_page.html | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 project/templates/pages/inner_page.html diff --git a/project/settings.py b/project/settings.py index 2af51df..19d5751 100644 --- a/project/settings.py +++ b/project/settings.py @@ -235,7 +235,7 @@ LANGUAGES = ( ) CMS_TEMPLATES = ( ('pages/index.html', 'Index Page'), - #('template_2.html', 'Template Two'), + ('pages/inner_page.html', u'Внутренняя страница'), ) BROKER_HOST = "localhost" diff --git a/project/templates/pages/index.html b/project/templates/pages/index.html index 75a17c4..7500f6f 100644 --- a/project/templates/pages/index.html +++ b/project/templates/pages/index.html @@ -9,7 +9,7 @@

Быстрое создание счетов, актов, накладных и других бухгалтерских документов в Excel или PDF

Перед вами онлайн сервис для создания и хранения первичных бухгалтерских документов. Здесь вы можете за несколько секунд создать и скачать в Excel или PDF: счёт на оплату, накладную, акт выполненных работ, платёжное поручение, акт сверки.

-

Помимо создания документов, здесь вы можете контролировать их оплату, возврат к вам закрывающих документов.{% static_placeholder "phone" %}

+

Помимо создания документов, здесь вы можете контролировать их оплату, возврат к вам закрывающих документов.

{% placeholder "content" %} {% if not user.is_authenticated %}

diff --git a/project/templates/pages/inner_page.html b/project/templates/pages/inner_page.html new file mode 100644 index 0000000..dea34dd --- /dev/null +++ b/project/templates/pages/inner_page.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% load cms_tags %} + +{% block title %}Главная{% endblock %} + +{% block content %} + +

+ {% placeholder "content" %} +
+ +
+ +{% endblock %}